I hereby claim:
- I am niftyn8 on github.
- I am nifty (https://keybase.io/nifty) on keybase.
- I have a public key whose fingerprint is E748 00DB 4F69 2879 DDC7 A260 24CB 0368 3834 CF8C
To claim this, I am signing this object:
#!/bin/sh -x | |
CURRENT=`git branch | grep '\*' | awk '{print $2}'` | |
git checkout master | |
git pull origin master | |
git checkout ${CURRENT} | |
git rebase master | |
git push -u origin ${CURRENT} | |
hub pull-request |
example-project |
#!/usr/bin/env escript | |
% -*- mode: erlang -*- | |
main([BeamFile]) -> | |
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]), | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
conn = ActiveRecord::Base.connection.raw_connection | |
tempfile = "/tmp/users.csv" | |
buff = '' | |
conn.transaction do | |
conn.exec( "COPY users TO STDIN AS CSV" ) | |
File.open(tempfile, "wb") do |file| | |
file << buff while buff = conn.get_copy_data | |
end | |
end |
data Color = Black | White | |
data Piece = Pawn | Knight | Bishop | Rook | Queen | King | |
blackQueen = { color=Black, piece=Queen } | |
-- { color = Black, piece = Queen } : {color : Color, piece : Piece} | |
-- instantiating the record creates functions to return it's attributes: | |
.color blackQueen | |
-- Black : Color |
a = [1,2,3,4,5] | |
# => [1, 2, 3, 4, 5] | |
head, *tail = a | |
# => [1, 2, 3, 4, 5] | |
head | |
# => 1 | |
tail | |
# => [2, 3, 4, 5] |
#!/usr/bin/env bash | |
# | |
# JBoss standalone control script | |
# | |
# chkconfig: - 80 20 | |
# description: JBoss AS Standalone | |
# processname: standalone | |
# pidfile: /var/run/jboss-as/jboss-as-standalone.pid | |
# config: /etc/jboss-as/jboss-as.conf |
description "This is an upstart job file for Immutant" | |
pre-start script | |
bash << "EOF" | |
mkdir -p /var/log/immutant | |
chown -R immutant /var/log/immutant | |
EOF | |
end script | |
# Ubuntu doesn't yet emit the network-services event: |
I hereby claim:
To claim this, I am signing this object:
Verifying that +niftyn8 is my Bitcoin username. https://onename.io/niftyn8 |