Skip to content

Instantly share code, notes, and snippets.

View ghostbar's full-sized avatar

Jose-Luis Rivas ghostbar

View GitHub Profile
var timeoutIds = []
function newTimeout (fn, time) {
return setTimeout(fn, time)
}
function toBeSent () {
console.log('I\'m being called! Timeout!', Date.now())
console.log(timeoutIds)
}
@ghostbar
ghostbar / a.js
Last active January 31, 2016 05:19
var ee = new (require('events').EventEmitter)()
function init () {
console.log('initialize this function on require')
setTimeout(function () {
ee.emit('init', 'got called!')
}, 2000)
}
init()
#!/usr/bin/env bash
# vim: ft=sh
declare SSH_HOST="${SSH_HOST:-myserver.com}"
declare SSH_USER="${SSH_USER:-uploader}"
declare SSH_PORT="${SSH_PORT:-22}"
declare TAGS="${TAGS:-resnullius/alpine-armv7l:latest resnullius/alpine-armv7l:3.3 resnullius/alpine-armv7l:edge}"
for tag in $TAGS
#!/usr/bin/env bash
declare versions="versions/armv7l/resnullius-edge/options"
push() {
[[ "$NO_PUSH" ]] && return 0
declare build_files="$1"
for file in $build_files; do
(
modify_file() {
sed -i "s/title/date\: $2T00:00:00-04:00\ntitle/" "$1"
}
for item in *.md; do
exists="$(grep "^date: " "$item")"
if [ -z "$exists" ]; then
echo "$item"
what_date="$(echo "$item" | cut -c 1-10)"
modify_file "$item" "$what_date"

Keybase proof

I hereby claim:

  • I am ghostbar on github.
  • I am ghostbar (https://keybase.io/ghostbar) on keybase.
  • I have a public key ASBLpQH99e54P8HMYWrd6YQGkSGmHeKhcDLc6RQQaKXTmwo

To claim this, I am signing this object: