A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
A list of amazingly awesome PHP libraries, resources and shiny things.
This is a simple demo of how to create and use a Response Interceptor in AngularJS. In this case we are using the interceptor to convert the objects created from a JSON data load into typed instances of a custom "class".
Step 1: Add some npm packages to your devDependencies section in package.json: | |
"gulp-usemin": "^0.3.8", | |
"gulp-util": "^2.2.14", | |
"run-sequence": "^1.0.2", | |
"shelljs": "^0.3.0" | |
Step 2: Import them in gulpfile.js: | |
var sh = require('shelljs'); |
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
#!/bin/bash | |
FAN_SPEED=30 | |
RESET="n" | |
[[ "$2" == "print" ]] && PRINT_ONLY="y" || PRINT_ONLY= | |
if [ "$1" == "XMR1" ]; then | |
MEM="m 2 2100 850" | |
GPU_1_G="s 3 1125 825" | |
GPU_2_G="s 3 1125 812" |