Skip to content

Instantly share code, notes, and snippets.

@nurey
nurey / gist:2255271
Created March 30, 2012 21:29
Get Gitbox.app and FileMerge working together again after upgrading Xcode to 4.3
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
Started POST "/workflow/review?auth_token=drTRiTz4WL15TpX64YpM" for 216.223.150.105 at 2012-03-30 06:33:16 -0700
Processing by WorkflowController#review as JSON
Parameters: {"url"=>"http://www.bankisrael.gov.il/series/en/export/html/?series=PU.S03_7_V1.Q&start=1950-01&end=2015-12", "retriever"=>"http", "import_spec"=>"{\"preprocessor
s\":[],\"parser\":[[\"html\",{\"criteria\":\"table[id=\\\"series-data-table\\\"]\"}]],\"actions\":[],\"formats\":[]}", "column_spec"=>"[0,[\"Date\",{}],[\"Value\",{}]]", "sheet
"=>"", "auth_token"=>"drTRiTz4WL15TpX64YpM"}
ESC[1mESC[36mUser Load (0.4ms)ESC[0m ESC[1mSELECT "users".* FROM "users" WHERE "users"."authentication_token" = 'drTRiTz4WL15TpX64YpM' LIMIT 1ESC[0m
ESC[1mESC[35m (0.0ms)ESC[0m BEGIN
ESC[1mESC[36m (0.2ms)ESC[0m ESC[1mUPDATE "users" SET "last_sign_in_at" = '2012-03-30 13:33:11.136249', "current_sign_in_at" = '2012-03-30 13:33:16.193827', "sign_in_count" =
12567, "updated_at" = '2012-03-30 13:33:16.194446' WHERE "users"."id" = 3ESC[0m
ESC[1mESC[35m (
Started POST "/workflow/review?auth_token=drTRiTz4WL15TpX64YpM" for 216.223.150.105 at 2012-03-30 10:21:31 -0700
Processing by WorkflowController#review as JSON
Parameters: {"url"=>"http://www.bankisrael.gov.il/series/en/export/html/?series=PU.S03_7_V1.Q&start=1950-01&end=2015-12", "retriever"=>"http", "import_spec"=>"{\"preprocessor
s\":[],\"parser\":[[\"html\",{\"criteria\":\"table[id=\\\"series-data-table\\\"]\"}]],\"actions\":[],\"formats\":[]}", "column_spec"=>"[0,[\"Date\",{}],[\"Value\",{}]]", "sheet
"=>"", "auth_token"=>"drTRiTz4WL15TpX64YpM"}
ESC[1mESC[35mUser Load (0.4ms)ESC[0m SELECT "users".* FROM "users" WHERE "users"."authentication_token" = 'drTRiTz4WL15TpX64YpM' LIMIT 1
ESC[1mESC[36m (0.1ms)ESC[0m ESC[1mBEGINESC[0m
ESC[1mESC[35m (0.2ms)ESC[0m UPDATE "users" SET "last_sign_in_at" = '2012-03-30 17:21:24.600597', "current_sign_in_at" = '2012-03-30 17:21:31.426021', "sign_in_count" = 12591
, "updated_at" = '2012-03-30 17:21:31.426550' WHERE "users"."id" = 3
ESC[1mESC[36m (0.6ms)ESC[0m
@nurey
nurey / gist:2218303
Created March 27, 2012 17:45
capistrano notify_grove
namespace :deploy do
task :notify_grove do
run 'curl https://grove.io/api/notice/[REPLACE_WITH_TOKEN]/ -d "service=DeployBot" -d "message=New code deployed!"'
end
end
after "deploy", "deploy:notify_grove"
// Variables.less
// Variables to customize the look and feel of Bootstrap
// Swatch: Spacelab
// -----------------------------------------------------
// GLOBAL VALUES
// --------------------------------------------------
// Links
// Bootswatch.less
// Swatch: Spacelab
// -----------------------------------------------------
// NAVBAR
// -----------------------------------------------------
// navbar style
.navbar {
border-bottom: 1px solid #CACACA;
@import "twitter/bootstrap/reset";
@import "bootswatch/variables";
@import "twitter/bootstrap/mixins";
@import "twitter/bootstrap/scaffolding";
@import "twitter/bootstrap/grid";
@import "twitter/bootstrap/layouts";
@import "twitter/bootstrap/type";
@import "twitter/bootstrap/code";
@import "twitter/bootstrap/forms";
@import "twitter/bootstrap/tables";
[successDialog hideAfterDelay:1.5f withCompletion: ^
{
[self doSomething];
}];
- (void)hideWithCompletion: (void (^)())completion
{
if (self.visible == YES)
{
{
"results":
[
{
"time":"2011-11-05T12:19:53-07:00",
"timestamp":"1320520793",
"dtime":"1 Month",
"transaction_code":"T485E9C098XZQ",
"invisicode":"S384J14YY",
@nurey
nurey / coupon.json
Created December 19, 2011 17:14
coupon
{
id: 1234,
name: 'December Savings',
value: 5 // decimal
fine_print: 'up to', // 'up to' or 'max $15.00'
value_type: 1, // 0 = percent amount, 1 = dollar amount
expires: '12/23/11',
dexpires: '4 days'
}