To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| var mongoose = require('./db-connect'), | |
| Schema = mongoose.Schema, | |
| ObjectId = Schema.ObjectId, | |
| uuid = require('node-uuid'), | |
| Validator = require('validator').Validator, | |
| val = new Validator(), | |
| bcrypt = require('bcrypt'); | |
| Validator.prototype.error = function(msg) { return false; }; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| #!/usr/bin/env python | |
| """ | |
| Convert camel-case to snake-case in python. | |
| e.g.: CamelCase -> snake_case | |
| Relevant StackOverflow question: http://stackoverflow.com/a/1176023/293064 | |
| """ |
| $ redis-cli | |
| > config set stop-writes-on-bgsave-error no |
| #!/usr/bin/env python | |
| """ | |
| Convert camel-case to snake-case in python. | |
| e.g.: CamelCase -> snake_case | |
| e.g.: snake_case -> CamelCase | |
| e.g.: CamelCase -> dash-case | |
| e.g.: dash-case -> CamelCase | |
| By: Jay Taylor [@jtaylor] | |
| Me<modifier>: Yahya Kacem <fuj.tyoli@gmail.com> | |
| Original gist: https://gist.github.com/jaytaylor/3660565 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| ############################## | |
| ## Java | |
| ############################## | |
| .mtj.tmp/ | |
| *.class | |
| *.jar | |
| *.war | |
| *.ear | |
| *.nar | |
| hs_err_pid* |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Client name="PlayStation 4"> | |
| <!-- Author: Plex Inc. --> | |
| <Identification> | |
| <Header name="User-Agent" substring="UPnP/1.0 DLNADOC/1.50" /> | |
| <Header name="User-Agent" substring="PS4Application" /> | |
| <Header name="User-Agent" substring="PlayStation 4" /> | |
| <Header name="X-AV-Client-Info" substring="PlayStation 4" /> | |
| </Identification> | |
| <TranscodeTargets> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent