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
namespace 'rails' do | |
desc 'Remove rails tmp dirs' | |
task 'rm_tmp_dirs' do | |
["./tmp/pids", "./tmp/sessions", "./tmp/sockets", "./tmp/cache"].each do |f| | |
system("rmdir ./#{f}") | |
end | |
end | |
end | |
namespace 'git' do |
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
# Models | |
class Agent < ActiveRecord::Base | |
belongs_to :manager | |
belongs_to :site | |
belongs_to :workgroup | |
named_scope :of_workgroup, lambda { |workgroup| {:conditions => ['workgroup_id = ?', @workgroup.id] } | |
end | |
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
#Install gems | |
gem 'mocha' | |
gem 'thoughtbot-shoulda' | |
gem 'thoughtbot-factory_girl' | |
gem 'technicalpickles-shoulda_generator' | |
gem 'mislav-will_paginate', :version => '~> 2.2.3', :lib => 'will_paginate', :source => 'http://gems.github.com' | |
gem 'haml' | |
#install plugins | |
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
// This software is released under the DBAD (Dont be a duche) license. | |
// If you improve this code in any way, you must release your modifications publicly. | |
#include "Map.h" | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
#define DEPTH 1 |
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
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |
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
$ brew install -v pianobar | |
==> Downloading https://github.com/PromyLOPh/pianobar/tarball/2011.01.24 | |
File already downloaded and cached to /Users/eric/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/eric/Library/Caches/Homebrew/pianobar-2011.01.24.24 | |
==> make PREFIX=/usr/local/Cellar/pianobar/2011.01.24 | |
make PREFIX=/usr/local/Cellar/pianobar/2011.01.24 | |
/usr/bin/cc -std=c99 -O3 -w -pipe -I src/libpiano -I src/libwaitress \ | |
-I src/libezxml -I /usr/include -I /usr/include -DENABLE_FAAD \ | |
-I /usr/include -DENABLE_MAD -c -o src/main.o src/main.c | |
/usr/bin/cc -std=c99 -O3 -w -pipe -I src/libpiano -I src/libwaitress \ |
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
+-----------------------------+ | |
| Collection View controls | <- controls region | |
+-----------------------------+ | |
| Form to add new item | <- form region | |
+-----------------------------+ | |
| Item 1 | \ | |
+-----------------------------+ | | |
| Item 2 | | <- itemViewContainer | |
+-----------------------------+ | | |
| ... | / |
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
struct ControlGrid { | |
var buttons : Dictionary<String, NSButton> | |
let mapping = [ | |
"e": (1, 0.5), | |
"se": (1, 1), | |
"s": (0.5, 1), | |
"sw": (0, 1), | |
"w": (0, 0.5), | |
"nw": (0, 0), |
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
func testOMGWTF() { | |
var err: NSError? | |
let plist = [ | |
"a": "c", | |
// note that 1 is a String | |
"b": "1" | |
] | |
let data = NSPropertyListSerialization.dataWithPropertyList( | |
plist, | |
format: NSPropertyListFormat.BinaryFormat_v1_0, |
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
# browserifying a bundle from the exact same working directory but where the | |
# target is elsewhere (the package i'm trying to build for release) | |
# fails to find the reactify module; | |
[eric@lxc000 app-ido-i3 (develop *)]$ bash -c "source develop; /Users/eric/work/app-ido-i3/front-end/blue-1/../../node_modules/.bin/browserify -t reactify /idealist/releases/permastatic-v0.0/resource/blue-1/js/abc.bundle.jsx" | |
Ready. | |
Error: Cannot find module 'reactify' from '/idealist/releases/permastatic-v0.0/resource/blue-1/js' | |
at /Users/eric/work/app-ido-i3/node_modules/browserify/node_modules/resolve/lib/async.js:50:17 | |
at process (/Users/eric/work/app-ido-i3/node_modules/browserify/node_modules/resolve/lib/async.js:119:43) | |
at /Users/eric/work/app-ido-i3/node_modules/browserify/node_modules/resolve/lib/async.js:128:21 | |
at load (/Users/eric/work/app-ido-i3/node_modules/browserify/node_modules/resolve/lib/async.js:60:43) |
OlderNewer