(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.
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| //Code to create a list of touches called pointerList | |
| var pointerList = []; //Array of all the pointers on the screen | |
| window.addEventListener("pointerdown", updatePointer, true); | |
| window.addEventListener("pointermove", updatePointer, true); | |
| window.addEventListener("pointerup", remPointer, true); | |
| window.addEventListener("pointercancel", remPointer, true); | |
| function updatePointer(e) { | |
| if(e.pointerType === "touch") { |
(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.
| license: gpl-3.0 |
| if (!process.env.http_proxy) return; | |
| var url = require('url'); | |
| var tunnel = require('tunnel'); | |
| var proxy = url.parse(process.env.http_proxy); | |
| var tunnelingAgent = tunnel.httpsOverHttp({ | |
| proxy: { | |
| host: proxy.hostname, | |
| port: proxy.port |
| function params(fn) { | |
| var str = fn.toString(); | |
| var sig = str.match(/\(([^)]*)\)/)[1]; | |
| if (!sig) return []; | |
| return sig.split(', '); | |
| } | |
| console.api = function(obj){ | |
| console.log(); | |
| var proto = Object.getPrototypeOf(obj); |
| <!DOCTYPE html> | |
| <body id="body" class="abc"><script src="Array.prototype.slice.js"></script><script src="testing-Array.prototype.slice.js"></script> | |
| </body> |
| this.EventEmmiter = (function() { | |
| var events = {}; | |
| var UUID = -1; | |
| // Function to publish/trigger events | |
| function trigger(evt, args) { | |
| if (!events[evt]) { | |
| return false; |
| #define HTTP_STATUS_100 "100 Continue" | |
| #define HTTP_STATUS_101 "101 Switching Protocols" | |
| #define HTTP_STATUS_102 "102 Processing" | |
| #define HTTP_STATUS_200 "200 OK" | |
| #define HTTP_STATUS_201 "201 Created" | |
| #define HTTP_STATUS_202 "202 Accepted" | |
| #define HTTP_STATUS_203 "203 Non-Authoritative Information" | |
| #define HTTP_STATUS_204 "204 No Content" | |
| #define HTTP_STATUS_205 "205 Reset Content" | |
| #define HTTP_STATUS_206 "206 Partial Content" |