QSteer commands source: http://d.hatena.ne.jp/o2mana/20091122/1258912540
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for 3.0 rails | |
# create rvmrc file | |
create_file ".rvmrc", "rvm 1.9.2" | |
gem "jquery-rails" | |
gem "postgres" | |
#gem "kaminari" | |
#gem "carrierwave" | |
#gem "resque" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## PKGBUILD [plain_text] | |
# Contributor: Slash <demodevil5 [at] yahoo [dot] com> | |
pkgname=hon | |
pkgver=2.1.0.1 | |
pkgrel=1 | |
pkgdesc="Heroes of Newerth is a Real Time Strategy game heavily influcenced by DotA" | |
arch=('i686' 'x86_64') | |
url="http://www.heroesofnewerth.com/" | |
license=('custom:HoN') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.include_root_in_json = false | |
# {"post": {"title": "some title", "content": "some content"}} | |
# will be | |
# {"title": "some title", "content": "some content} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Inspired by George Jahad's version: http://georgejahad.com/clojure/debug-repl.html | |
(defmacro local-bindings | |
"Produces a map of the names of local bindings to their values." | |
[] | |
(let [symbols (map key @clojure.lang.Compiler/LOCAL_ENV)] | |
(zipmap (map (fn [sym] `(quote ~sym)) symbols) symbols))) | |
(declare *locals*) | |
(defn eval-with-locals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEBUG | |
#define ARR_SIZE 200 | |
int readPin = 11, debugPin = 13, writePin = 10; | |
// Debuging | |
#ifdef DEBUG | |
void debug() { | |
digitalWrite(debugPin, digitalRead(readPin)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db/table*.data | |
uploads/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn flip | |
"Flips a functions argument list." | |
[f] (fn [& args] (apply f (reverse args)))) | |
;Slightly shorter implementation by Anthony Grimes @IORayne | |
(defn flip [f] #(apply f (reverse %&))) | |
(def my-gt (flip >)) | |
(> 10 9); => true | |
(my-gt 10 9); => false |
OlderNewer