Skip to content

Instantly share code, notes, and snippets.

View 0x00b1's full-sized avatar
🕶️

Allen Goodman 0x00b1

🕶️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am goodmanio on github.
  • I am goodman (https://keybase.io/goodman) on keybase.
  • I have a public key whose fingerprint is 195F 27B9 4919 E22B C9D9 1823 2AC9 2307 2763 6EC1

To claim this, I am signing this object:

describe '.created' do
let! (:activity) { create :activity, task: 'created' }
it { expect(Activity.created).to eq([activity]) }
end
describe '.deleted' do
let! (:activity) { create :activity, task: 'deleted' }
it { expect(Activity.deleted).to eq([activity]) }
class Tableless < ActiveRecord::Base
def self.column(name, sql_type = nil, default = nil, null = true)
columns << ActiveRecord::ConnectionAdapters::Column.new( name.to_s, default, sql_type.to_s, null )
end
def self.columns()
@columns ||= [];
end
module Unicode where
{-
module Unicode (
) where
import ...
-}
[1] (operator { postfix: ! } ({ a: Z64 } → Z64)
({ accumulator: Z64 } ← 1)
{ compute:
(match [a]
{ 0: accumulator }
{ _: (accumulator ← (a × accumulator))
(a ← (a − 1))
http://www.basketball-reference.com/boxscores/pbp/201410280LAL.html
http://www.basketball-reference.com/boxscores/pbp/201410280NOP.html
http://www.basketball-reference.com/boxscores/pbp/201410280SAS.html
http://www.basketball-reference.com/boxscores/pbp/201410290BOS.html
http://www.basketball-reference.com/boxscores/pbp/201410290CHO.html
http://www.basketball-reference.com/boxscores/pbp/201410290DEN.html
http://www.basketball-reference.com/boxscores/pbp/201410290IND.html
http://www.basketball-reference.com/boxscores/pbp/201410290MEM.html
http://www.basketball-reference.com/boxscores/pbp/201410290MIA.html
http://www.basketball-reference.com/boxscores/pbp/201410290NYK.html
@0x00b1
0x00b1 / ubuntu-nginx-init.sh
Created August 28, 2012 05:07
nginx Initialization for Ubuntu
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
% java PercolationStats 2 10000
mean = 0.666925
stddev = 0.11776536521033558
95% confidence interval = 0.6646167988418774, 0.6692332011581226
mean = 0.665575
stddev = 0.11823733497392995
95% confidence interval = 0.663257548234511, 0.6678924517654891
if [[ !(`date | grep NZDT`) ]]; then
sudo ln -sf /usr/share/zoneinfo/Pacific/Auckland /etc/localtime
fi
sudo apt-get update
sudo apt-get --yes upgrade
sudo sed -i 's/#PasswordAuthentication no/PasswordAuthentication no/g' /etc/ssh/sshd_config
sudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
sudo service ssh restart
grammar Grammar;
fragment Uppercase : [A-Z] | '$' | '_' ;
fragment Lowercase : [a-z] ;
fragment Letter : Uppercase | Lowercase ;
fragment Operator : [\u0020-\u007F]+ ;
fragment Body : (Letter | [0-9])* ('_' Operator) ;
fragment Decimal : '0' | [1-9] [0-9]* ;
fragment Hexadecimal : '0' 'x' [0-9A-Fa-f]+ ;
fragment Octal : '0' [0-7]+ ;