Skip to content

Instantly share code, notes, and snippets.

View n3tr's full-sized avatar

Jirat Ki. n3tr

View GitHub Profile
@n3tr
n3tr / App.js
Last active June 21, 2018 02:25 — forked from woraperth/webSocket.js
JavaScript Singleton to connect to WebSocket (originally for React project)
// App.js
import { getWebSocket } from './webSocket'
let ws = getWebSocket()
ws.send(...)
ws.onmessage = ev => { console.log(ev.data) }
@n3tr
n3tr / gist:8395947
Last active January 3, 2016 02:29 — forked from schacon/gist:942899
Remove all merged (into develop) remote branches from remote
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v develop |
xargs -L1 |
awk '{split($0,a,"origin/"); print a[2]}' |
xargs git push origin --delete
@n3tr
n3tr / f3-split-button.html
Created June 23, 2012 17:31 — forked from smileyj68/f3-split-button.html
Foundation 3 Split Button
<div href="#" class="large alert button split dropdown">
<a href="#">Split Button</a>
<span></span>
<ul>
<li><a href="#">Dropdown Item</a></li>
<li><a href="#">Another Dropdown Item</a></li>
<li class="divider"></li>
<li><a href="#">Last Item</a></li>
</ul>
</div>
@n3tr
n3tr / 1.Gemfile
Created February 15, 2012 04:22 — forked from nicalpi/1.Gemfile
Creates easy shorten UUID in your RAILS APP
## See http://
gem 'base32-crockford', :require => 'base32/crockford'