Skip to content

Instantly share code, notes, and snippets.

View 5un's full-sized avatar

Soravis Prakkamakul 5un

View GitHub Profile
@5un
5un / .block
Created April 11, 2018 18:49
ischool-geo-viz-04
license: mit
@5un
5un / .block
Last active April 11, 2018 18:44
ischool-geo-viz-template
license: mit
@5un
5un / .block
Last active April 11, 2018 18:21
ischool-geo-viz-template
license: mit
@5un
5un / post-google-forms-node.js
Last active February 19, 2023 00:07
post-google-forms-nodejs
var request = require('superagent');
// https://docs.google.com/forms/d/<form-id>/edit
var formId = 'YOUR_FORM_ID';
var fields = {
size: 'entry.1721541334',
sizeOther: 'entry.1721541334.other_option_response',
email: 'entry.1414359800',
mobile: 'entry.1534391001',
var request = require('superagent')
const agent = require('superagent-bluebird-promise')
var http = require('http')
var fs = require('fs')
var API_URL = 'https://api.chui.ai/v1'
var apiKey = 'TRUEFACE_API_KEY'
fs.readFile('myimg.jpg', function (err, file){
@5un
5un / app.yaml
Created September 30, 2016 15:55
NodeJS GAE Issue Reproduction
runtime: nodejs
vm: true
skip_files:
- ^(.*/)?.*/node_modules/.*$
# [END app_yaml]
# application: myapp-1
service: hello
# module: service-nodejs
@5un
5un / package.json
Created September 30, 2016 15:53
NodeJS GAE Issue Reproduction
{
"name": "node-gae-issue",
"version": "0.0.1",
"author": "Soravis Prakkamakul",
"private": true,
"main": "./build/bin/server",
"scripts": {
"eslint": "./node_modules/.bin/eslint --quiet **/**/*.js **/*.js **.js",
"test": "mocha ./tests/**/*.spec.js --compilers js:babel-register",
"test-cov": "nyc -r lcovonly mocha ./tests/**/*.spec.js --compilers js:babel-register",
@5un
5un / BBLiPayActivity.java
Created August 1, 2016 10:55
Supporting Bangkok Bank's BBL iPay in Android
package th.co.runnables.bblipayexample;
import android.app.Activity;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.widget.Toolbar;
import android.util.Log;