Open up iTerm and go to iTerm -> preferences -> keys, then add the following hex codes:
0x17 (⌥ + Delete)
0x15 (⌘ + Delete)
0x05 (⌘ + →)
0x01 (⌘ + ⃪)
| angular.module('app.services', []) | |
| .factory('GithubProvider', ['$http', '$q', function($http, $q){ | |
| return { | |
| fetchUser: fetchUser, | |
| fetchRepo: fetchRepo | |
| }; | |
| /** |
| /** | |
| * App Factory: httpInterceptor | |
| * ------------------------- | |
| * The $http interceptor. | |
| * This is where you can modify the $http message before/after the request is sent to the server. | |
| * | |
| * Here's a very useful article regarding $http interceptors: | |
| * https://thinkster.io/interceptors | |
| * | |
| * USEFUL TIP: |
| #!/bin/bash | |
| # Install Homebrew | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Install necessary commands | |
| brew update | |
| brew upgrade | |
| # Install useful apps using Homebrew |
Resources for learning web design & front-end development:
ONLINE
Design
| /** | |
| * Initialize Directions Service | |
| * | |
| * @param {Object} origin - The latitude & longitude of origin point | |
| */ | |
| function _InitializeGmapsDirections(origin) { | |
| // Set map zoom base on markers | |
| var _SetMapZoom = function (positionList) { |
| (function () { | |
| 'use strict'; | |
| angular.module('app.factories').factory('TemplateCache', TemplateCache); | |
| function TemplateCache($http, $templateCache) { | |
| return { | |
| Register: _Register |
| /** | |
| * ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
| * | |
| * This patch works around iOS9 UIWebView regression that causes infinite digest | |
| * errors in Angular. | |
| * | |
| * The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
| * have the workaround baked in. | |
| * | |
| * To apply this patch load/bundle this file with your application and add a |
| /** | |
| * Get the Greatest Common Denominator of two numbers. | |
| * | |
| * @param {int} num1 | |
| * @param {int} num2 | |
| * | |
| * @return {int} | |
| * */ | |
| private static int getGCD(int num1, int num2) { | |
| /** | |
| * App Directive: fallback-src | |
| * ----------------------------- | |
| * This directive is being used along with <img> to set the src to default if incase the remote image isn't found. | |
| * | |
| * Usage: <img fallback-src="your-path-here" ng-src="to-remote-path" /> | |
| */ | |
| (function () { | |
| 'use strict'; |