https://tc39.github.io/ecma262/
Also block scoped, like let.
https://tc39.github.io/ecma262/
Also block scoped, like let.
| require 'net/https' | |
| require 'json' | |
| require 'openssl' | |
| =begin | |
| UUID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
| OS = "<OS NAME> <VERSION> - <ARCH>" | |
| USERNAME = "YOUR USERNAME" | |
| PASSWORD = "YOUR PASSWORD" | |
| TARGET_FONT = "jf-jinxuan-Medium" |
Download and install version 4.01 for windows: http://www.ocamlpro.com/pub/ocpwin/ocpwin-builds/ocpwin64/20160113/ocpwin64-20160113-4.01.0+ocp1-full-mingw64.exe
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-runtime"] | |
| } |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| NAME = mqtt2fluent | |
| APP_NAME = server.js | |
| NODE_VERSION = 0.12.7 | |
| PWD := $(shell pwd) | |
| .PHONY: all | |
| all: clean build |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
Thanks for all the stars.
Due to unexpected demand, I move this to a proper github repo, see here: https://github.com/chroth7/reactD3resources
I would very much like to get your PRs there, thank you!
| Parse.Cloud.afterSave($className, function(request) { | |
| var image = request.object.get('image'); | |
| if (image) { | |
| Parse.Cloud.httpRequest({ | |
| method: 'POST', | |
| url: 'https://api.imgur.com/3/upload', | |
| headers: { | |
| 'Content-Type': 'application/x-www-form-urlencoded', | |
| 'Authorization': 'Client-ID ' + $clientId |
| var crypto = require('crypto'); | |
| var sendSMS = function(to, message) { | |
| var promise = new Parse.Promise(); | |
| Parse.Cloud.httpRequest({ | |
| method: 'GET', | |
| url: 'http://smexpress.mitake.com.tw/SmSendGet.asp?username=' +''+ '&password=' +''+ '&dstaddr=' + to + '&smbody=' + message + '&encoding=UTF8', | |
| header: 'content-type: application/json', | |
| success: function(httpResponse) { | |
| promise.resolve(httpResponse); |