Skip to content

Instantly share code, notes, and snippets.

View dpaola2's full-sized avatar

Dave Paola dpaola2

View GitHub Profile
** script/start **
bundle exec rackup -p 3000 -s thin
** Makefile **
local:
BLOC_BASE_URI=http://localhost:5000 script/start
staging:
echome:
echo $(CSS_BUILD)
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
it "should have status 'true'" do
click_button :submit
Task.status.should_be(true)
end
require "./spec/spec_helper"
describe User do
describe "#generate_api_key!" do
fixtures :users
<table class="table table-striped">
<thead>
<th width="80px;">Action</th>
<th>Task Details</th>
<th>Due</th>
<th>Status</th>
rake task:
passages.each do |passage|
words = deduplicate(passage)
words.each do |word|
Redis.set(word, retrieve_definition(word))
end
end
@dpaola2
dpaola2 / passages_spec.rb
Created June 14, 2012 19:54 — forked from unobliged/phs
passages helper spec
require 'spec_helper'
describe PassagesHelper do
describe "#unique_words" do
let(:passage) { FactoryGirl.create(:passage) }
passage.title.should eq("testFG")
end
end
@dpaola2
dpaola2 / operationengine.py
Created July 16, 2012 23:34 — forked from inportb/operationengine.py
operational composition and transformation in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Copyright (C) 2011 by Jiang Yio <http://inportb.com/>
## The latest code is available at <https://gist.github.com/962122>
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to deal
## in the Software without restriction, including without limitation the rights
## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@dpaola2
dpaola2 / keybase.md
Created March 17, 2014 21:03
keybase verification

Keybase proof

I hereby claim:

  • I am dpaola2 on github.
  • I am dpaola2 (https://keybase.io/dpaola2) on keybase.
  • I have a public key whose fingerprint is A3F4 CA96 F237 D46F 614D 2F29 606B 2DB9 F4CD BD3C

To claim this, I am signing this object: