Skip to content

Instantly share code, notes, and snippets.

View 0x00b1's full-sized avatar
🕶️

Allen Goodman 0x00b1

🕶️
View GitHub Profile
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 / 2015
Created December 16, 2015 14:07
(T)ERROR
3½ Minutes, Ten Bullets
A Pigeon Sat on a Branch Reflecting on Existence
A Syrian Love Story
About Elly
Advantageous
Amour Fou
Amy
Anomalisa
Appropriate Behavior
http://cellprofiler.org/foo.tif
https://github.com/foo.tif
ftp://example.com/foo.tif

Keybase proof

I hereby claim:

  • I am 0x00b1 on github.
  • I am 0x00b1 (https://keybase.io/0x00b1) on keybase.
  • I have a public key ASDFkIH6mjBBbe7iyhWAh7A8tVVsC5YspKmulaUm2JtiAgo

To claim this, I am signing this object:

"""
Blob detection
"""
import skimage.data
import skimage.draw
import skimage.feature
import cellprofiler.cpimage

SimpleITK on OS X El Capitan with Homebrew Python

Unfortuantly, SimpleITK links your system Python rather than your Homebrew Python, i.e.

$ pip install SimpleITK

$ python
Python 2.7.12 (default, Jun 29 2016, 14:05:02) 
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin