Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / main.rb
Created September 1, 2016 13:26
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"
@c9s
c9s / .babelrc
Last active October 21, 2023 14:04
webpack + babel + typescript + es6 - total solutions!
{
"presets": ["es2015"],
"plugins": ["transform-runtime"]
}
@rauchg
rauchg / README.md
Last active December 30, 2025 06:51
require-from-twitter
@philipz
philipz / Makefile
Last active May 10, 2016 03:50
Build Node binary Docker image
NAME = mqtt2fluent
APP_NAME = server.js
NODE_VERSION = 0.12.7
PWD := $(shell pwd)
.PHONY: all
all: clean build
@gaearon
gaearon / slim-redux.js
Last active March 11, 2026 12:07
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
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])) {
@chroth7
chroth7 / reactD3rescources.md
Last active December 6, 2017 05:37
React/D3 Resources
@yutin1987
yutin1987 / imgur.js
Created July 26, 2015 05:18
Parse.com upload image to imgur
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
@yutin1987
yutin1987 / sms.js
Created July 25, 2015 12:54
Parse.com 三竹簡訊範例
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);