Skip to content

Instantly share code, notes, and snippets.

View goldalworming's full-sized avatar

arief nur andono goldalworming

View GitHub Profile
http://www.hubspot.com/inbound-marketing
http://glorm.com/themes/mondrian-fb/
bigcommerce css
<link href="https://cdn5.bigcommerce.com/r-dbb64073de2da013433595ff249f52de19f7c59a/themes/__master/Styles/styles.css" type="text/css" rel="stylesheet" /><link href="https://cdn5.bigcommerce.com/r-f21369a50d6397a1d6aa71f6a876b3787a78e1fb/themes/__SocialShop/Styles/styles.css" media="all" type="text/css" rel="stylesheet" />
<link href="https://cdn5.bigcommerce.com/r-f21369a50d6397a1d6aa71f6a876b3787a78e1fb/themes/__SocialShop/Styles/iselector.css" media="all" type="text/css" rel="stylesheet" />
<link href="https://cdn5.bigcommerce.com/r-f21369a50d6397a1d6aa71f6a876b3787a78e1fb/themes/__SocialShop/Styles/blue.css" media="all" type="text/css" rel="stylesheet" />
<!--[if IE]><link href="https://cdn5.bigcommerce.com/r-f21369a50d6397a1d6aa71f6a876b3787a78e1fb/themes/__SocialShop/Styles/ie.css" media="all" type="text/css" rel="stylesheet" /><![endif]-->
<link href="https://cdn5.bigcommerce.com/r-dbb64073de2da013433595ff249f52de19f7c59a/themes/__master/Styles/pro
@goldalworming
goldalworming / gist:ffdbe9a88d77bc5e199e
Last active January 6, 2016 09:55
golang too many open files
https://ttboj.wordpress.com/2015/07/27/golang-parallelism-issues-causing-too-many-open-files-error/
https://github.com/kkdai/
@goldalworming
goldalworming / vineScrape.go
Created December 4, 2015 07:19 — forked from cryptix/vineScrape.go
extract a javascript object value from a html page using goquery and otto
package main
import (
"errors"
"log"
"os"
"github.com/PuerkitoBio/goquery"
"github.com/robertkrimen/otto"
)
@goldalworming
goldalworming / sessionstorage.js
Created November 9, 2015 07:48
ngstorage not work in firefox so this is one of the solution
//http://codepen.io/chrisenytc/pen/gyGcx
$window.sessionStorage;
@goldalworming
goldalworming / md5-example.go
Created November 4, 2015 08:53 — forked from sergiotapia/md5-example.go
Golang - How to hash a string using MD5.
import (
"crypto/md5"
"encoding/hex"
)
func GetMD5Hash(text string) string {
hasher := md5.New()
hasher.Write([]byte(text))
return hex.EncodeToString(hasher.Sum(nil))
}
func pasteHandler(w http.ResponseWriter, r *http.Request) {
paste_id := strings.TrimPrefix(r.URL.Path, "/paste")
paste := &Paste{UUID: paste_id}
keep_alive := false
burn_after_reading := false
data := struct {
Paste *Paste
KeepAlive bool
BurnAfterReading bool
// Login API
var auth = riot.observable()
auth.login = function(params) {
$.get('/api', params, function(json) {
auth.trigger('login', json)
})
}
@goldalworming
goldalworming / benchmark
Created June 14, 2015 15:56
first try node vs golang
lmvm@lm17 ~/web/web $ ab -r -n 100000 -c 1000 http://www.ekuitas.com/
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.ekuitas.com (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
@goldalworming
goldalworming / raspberry.txt
Created June 8, 2015 06:42
raspberry tutor
http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using-raspberrypi-nodejs-and-socket-io/
https://www.danpurdy.co.uk/web-development/raspberry-pi-kiosk-screen-tutorial/