Skip to content

Instantly share code, notes, and snippets.

View Pcushing's full-sized avatar

Patrick Cushing Pcushing

View GitHub Profile
@Pcushing
Pcushing / todo_spec.rb
Created June 28, 2012 00:29
spec for todo app with Sung
require 'rspec'
require 'simplecov'
SimpleCov.start
require './list.rb'
require './task.rb'
describe Todo::List do
before :each do
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://socrates.devbootcamp.com/sql.html -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
<type label="Single precision" length="0" sql="FLOAT" quote=""/>
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://socrates.devbootcamp.com/sql.html -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
<type label="Single precision" length="0" sql="FLOAT" quote=""/>
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://socrates.devbootcamp.com/sql.html -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
<type label="Single precision" length="0" sql="FLOAT" quote=""/>
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
$('#filepicker-single-license').on('click', function(e){
e.preventDefault();
var featherEditor = new Aviary.Feather({
apiKey: '1V6FW064w0CkvYNV2rihHg',
apiVersion: 2,
tools: ['crop', 'orientation', 'blemish'],
onSave: function(imageID, newURL) {
// var newFPFile = new FPFile({url: newURL}); //Need to get this piece working
filepicker.store(
newURL, //this isn't right, need to pass a FPFile object or something similar
@Pcushing
Pcushing / launch_darkly_wh_ex.rb
Last active August 29, 2015 14:08
Launch Darkly in Rails App
# You may need to add /lib to your autoload paths in /config/application.rb
config.autoload_paths += %W(#{config.root}/lib)
# /lib/extensions/launch_darkly.rb
module Extensions
module LaunchDarkly
def self.included(c)
return unless c
c.helper_method :pilot_navbar? # anything that needs view-level control
end
{
"organizations_2015_02_06": {
"mappings": {
"issuer": {
"properties": {
"avatar_thumbnail_url": {
"type": "string"
},
"created_at": {
"type": "date",