This file contains hidden or 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
CREATE TABLE IF NOT EXISTS events ( | |
id TEXT, | |
name TEXT, | |
time TIMESTAMP, | |
state TEXT, | |
context map<text, text>, | |
account TEXT, | |
email TEXT, | |
visitor TEXT, | |
device TEXT, |
This file contains hidden or 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
// http://github.com/ride/go-migrate | |
type MigrationHandler func(context *migrate.Context) error | |
type core.Migration struct { | |
Up: MigrationHandler, | |
Down: MigrationHandler, | |
Name: "Something cool", | |
} |
This file contains hidden or 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
package main | |
import ( | |
. "github.com/smartystreets/goconvey/convey" | |
"sync" | |
"testing" | |
) | |
var mutex sync.Mutex |
This file contains hidden or 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
#include <iostream> | |
#include <locale> | |
#include <regex> | |
using namespace std; | |
class Node { | |
public: | |
Node(const string& name) : name(name) { | |
cout << "grid " << this->name << " initialized" << endl; |
This file contains hidden or 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
// | |
// AppDelegate.m | |
// testNotifications | |
// | |
// Created by Johan Ride on 12/4/14. | |
// Copyright (c) 2014 Ride.com. All rights reserved. | |
// | |
#import "AppDelegate.h" |
This file contains hidden or 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
if defined?(ActiveSupport) | |
ActiveSupport.on_load(:action_controller) do | |
include AnalyticsHelper | |
end | |
end |
This file contains hidden or 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
Process: Google Chrome [22511] | |
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome | |
Identifier: com.google.Chrome | |
Version: 39.0.2171.71 (2171.71) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Google Chrome [22511] | |
User ID: 501 | |
Date/Time: 2014-12-02 12:26:25.922 -0500 |
This file contains hidden or 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
require 'minitest_helper' | |
require 'action_controller' | |
class ControllerStuff < ActionController::Base | |
def create | |
local_activity.action("yay!") | |
end | |
end | |
class ControllerStuffTest < ActionController::TestCase |
This file contains hidden or 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
/opt/boxen/homebrew/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:1445 runtime - goexit | |
/opt/boxen/homebrew/Cellar/go/1.3.3/libexec/src/pkg/runtime/proc.c:247 runtime - main | |
/Users/ride/src/going/src/github.com/ride/teste/main.go:67 main - main | |
/Users/ride/src/going/src/github.com/ride/teste/main.go:72 main - level1 | |
/Users/ride/src/going/src/github.com/ride/teste/main.go:76 main - level2 | |
/Users/ride/src/going/src/github.com/ride/teste/main.go:80 main - level3 | |
/opt/boxen/homebrew/Cellar/go/1.3.3/libexec/src/pkg/runtime/panic.c:248 runtime - panic | |
Error recovered: shit went wrong |
This file contains hidden or 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
// https://medium.com/@bithavoc/uidatepicker-presentation-issue-on-ios-8-98215118a27f | |
if(NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1) { | |
[[UITableView appearanceWhenContainedIn:[UIDatePicker class], nil] setBackgroundColor:nil]; // for iOS 8 | |
} else { | |
[[UITableViewCell appearanceWhenContainedIn:[UIDatePicker class], [UITableView class], nil] setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.0]]; // for iOS 7 | |
} |