Skip to content

Instantly share code, notes, and snippets.

View goldalworming's full-sized avatar

arief nur andono goldalworming

View GitHub Profile
@goldalworming
goldalworming / setup_howto.txt
Created March 31, 2016 09:48 — forked from kosiara/setup_howto.txt
Setup Facebook React-native sample (empty) project on Ubuntu
# author:
# @Bartosz Kosarzycki
#
sudo apt-get install npm
sudo npm install -g react-native-cli
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /home/user/your/project/path
react-native init AwesomeProject
cd AwesomeProject
@goldalworming
goldalworming / client.py
Created March 30, 2016 11:50 — forked from nephics/client.py
Test of experimental Tornado feature for a streaming request body handler
#
# Test of experimental Tornado feature for a streaming request body handler, see
# https://github.com/nephics/tornado/commit/1bd964488926aac9ef6b52170d5bec76b36df8a6
#
#
# Client sending file to server
#
import tornado.httpclient as httpclient
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()
http://www.learn-cocos2d.com/2012/05/learn-create-cocos2d-game-lua-scripting-physics-tilemaps-arc/
모모타니 에리카
http://blog.nobugware.com/
geodatabase
def uploadfile(filepath, uploadurl, fileformelementname="upfile"):
'''
This will invoke an upload to the webserver
on the VM
'''
files = {fileformelementname : open(filepath,'rb')}
r = requests.post(uploadurl, files=files)
return r.status_code
@goldalworming
goldalworming / gist:33c2ff310cd99c2fc88b
Created March 7, 2016 09:48 — forked from schmichael/gist:7379338
Transparently compress and upload a file in golang
package main
import (
"bufio"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
@goldalworming
goldalworming / wherein.go
Created March 5, 2016 04:06
use where in beego
func (c *RegisterController) Tes() {
res := struct{
Success bool
Rows []*models.User
Total int64
}{}
ids := []int{1, 2, 3}
o := orm.NewOrm()
arrstr := make([]string,len(ids))
for i := 0; i < len(ids); i++ {arrstr[i] = "?"}
@goldalworming
goldalworming / xls2pdf.py
Created March 4, 2016 04:34 — forked from mprihoda/xls2pdf.py
Convert XLS to PDF using Iron Python and MS Office
import clr
import sys
import os.path
clr.AddReference("Microsoft.Office.Interop.Excel")
from Microsoft.Office.Interop import Excel
from System import Type, GC
# See http://msdn.microsoft.com/en-us/library/bb407651.aspx for
@goldalworming
goldalworming / README.md
Created February 18, 2016 05:19 — forked from mike10004/README.md
Reverse Shell Using Python