Categories

  • AngularJS (43)
  • AWS (4)
  • Continuous Integration (1)
  • CSS (24)
  • D3 (3)
  • Data Structures & Algorithms (1)
  • Database (1)
  • Deployment (1)
  • Docker (1)
  • Flask (3)
  • Fun Projects (8)
  • Git (10)
  • IOS (1)
  • JavaScript (62)
  • Kendo (2)
  • Marketing (2)
  • NextJS (6)
  • NodeJS (4)
  • OS X (19)
  • Performance (8)
  • PHP (4)
  • Python (4)
  • Rails (14)
  • React Native (2)
  • ReactJS (12)
  • Recommendations (8)
  • Ruby (6)
  • SICP (3)
  • Testing (8)
  • Thoughts (33)
  • THREE.js (1)
  • Tools (14)
  • TypeScript (4)
  • Ubuntu (7)
  • Uncategorized (10)
  • VIM (4)
  • VSCode (2)
  • Webpack (4)

Archives

  • February 2021
  • January 2021
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • July 2019
  • June 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • January 2018
  • December 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • September 2013

Tags

AngularJS AWS Book Charles Chrome CoffeeScript Compatibility CSS DigitalOcean Flask Fun Future Future Reference Git Github JavaScript jQuery Knowledge Learn Less Map Material Design NextJS NodeJS OS X parallax Performance PHP Programmers Proxy Psychology Python Rails ReactJS Reference RoR Ruby Ruby on Rails Self-teach Snippet The Art of Learning Three.js Vim Webpack Wordpress

Most Helpful Posts

  • Angular Email Validation with Ng-Pattern (2590)
  • How to: Prevent Body From Scrolling When Overlay Is On (2218)
  • Reference: $state.go() with Parameter (1593)
  • Angular: All About Input Type="File" (1525)
  • Protractor Locators (Selectors) (1058)
  • How To Remove All NPM Proxy Settings (788)
  • Cannot read property 'replace' of undefined in jQuery (558)
  • Object.prototype.toString.call()? (520)
  • Disable Popup "Please Fill In this Field" (504)
  • How to: Prevent Body From Scrolling (436)
  • Angular Directive: Click Elsewhere? (402)
  • React: How To Prompt User of Unsaved Data before Leaving Site (394)
  • Render Post Processing with Three.js (284)
  • Common Errors with NanoScroller (229)
  • Angular: Requiring ng-model as Component (216)

Total quant of thanks: 16463

Newsletter

Subscribe to get interesting updates:

  • Email
  • Twitter
  • Google Plus
  • LinkedIn
  • Instagram
  • GitHub
  • Widgets
  • Connect
  • Search

Have Fun Learning

Passionately Curious

Menu

Skip to content
  • Portfolio
  • Recommendations
  • Archive
  • About
  • 日志

Tag Archives: Reference

Git

To proxy local ssh authentications onto remote

September 11, 2020luciaReference Leave a comment
$ ssh user@test.com -A

Ref: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ssh.1

Standard
OS X

How to Kill Whatever’s Running on Port 80

November 4, 2019luciaFuture Reference, OS X, Reference, Terminal Leave a comment

In terminal:

$ lsof -t -i tcp:80 | xargs kill

Standard
JavaScript

Yarn Upgrade All Dependencies to Latest

January 30, 2019luciaReference Leave a comment

For reference:

yarn upgrade-interactive --latest

And use a key to select all of them.

Standard
Git, Tools

Reference: How to Git Stash

January 5, 2018luciaGit, Reference, Stash

To save the uncommitted changes:

# Either without a name
$ git stash

# Or with a stash name:
$ git stash save funny-stash

Continue reading →

Standard
PHP

PHP: Script Base Url

March 27, 2016luciaPHP, Reference

To get the url of current script’s directory:

$script_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
$dir_url = preg_replace("/[^\/]*.php/", "", $script_url);

Continue reading →

Standard
PHP

Essential Differences between Session and Cookie

March 27, 2016luciaCookies, Reference, Sessions
  • Cookie gets send with every single request to server, sessions don’t.
  • Cookies are saved on client side. Sessions on server side.
  • Cookie can be created with an expire date (e.g., 30 days), so that users won’t have to re-login after closing browser window. Sessions die with page close*.

Continue reading →

Standard
PHP

PHP: Select from Database Error

March 26, 2016luciaPHP, Reference
$link = mysqli_connect("localhost", "root", "root");
$result = mysqli_select_db($link, 'internship');

$email_duplicate = "SELECT * FROM Interns WHERE email='$email';";
$result = mysqli_query($link, $email_duplicate);

Continue reading →

Standard
PHP

PHP: Check Server Method

March 26, 2016luciaPHP, Reference
if ($_SERVER['REQUEST_METHOD'] === 'POST') {...}

The POST part is all CAPITAL.

Standard
AngularJS

Reference: $state.go() with Parameter

July 10, 2015luciaAngularJS, Reference, Route

To go to this state with a bookName parameter:

state('book.name', {
  url: '/books/:bookName',
  ...
})

Continue reading →

Standard
AngularJS

Reference: Retrieve the Filtered Array in Angular

July 9, 2015luciaReference

ng-repeat=”product in data.activeProducts = (productList | filter: {brand_id: searchedId})”

Pay attention to the data.activeProduct part. Since ng-repeat creates another scope, if you want to use the filtered list outside of ng-repeat, append it to an outside object.

Standard

Post navigation

← Older posts
Leonpharmacy.com | Theme: Ryu by WordPress.com.
Have Fun Learning
Proudly powered by WordPress Theme: Ryu.