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
| Silver | |
| Blue | |
| Red | |
| Black | |
| Pink | |
| Green | |
| Plum | |
| Champagne Silver | |
| Brown | |
| Orange |
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
| Panasonic | |
| Canon | |
| Sony | |
| Nikon | |
| Kodak | |
| Fujifilm | |
| Pentax | |
| Olympus | |
| Digital | |
| NIKON |
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
| class Whatever < ActiveRecord::Base | |
| #field name is 'name' | |
| def foo | |
| name | |
| self['name'] | |
| self.name | |
| 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
| module Facebook | |
| # | |
| # Facebook request tools | |
| # | |
| class Request | |
| class << self | |
| def parse_signed_request(signed_request, secret, max_age=3600) | |
| encoded_sig, encoded_envelope = signed_request.split('.', 2) | |
| envelope = JSON.parse(base64_url_decode(encoded_envelope)) | |
| algorithm = envelope['algorithm'] |
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
| var Generator = { | |
| loaded: false, | |
| init: function(e) { | |
| if (this.loaded == false) { | |
| this.loaded = true; | |
| this.setup(); | |
| } | |
| }, | |
| setup: function() { | |
| console.log('setup'); |
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
| var Generator = function(options) { | |
| this.init = function() { | |
| console.log('init') | |
| this.runSomeSetup(); | |
| }; | |
| this.runSomeSetup = function() { | |
| console.log('setup'); | |
| } |
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
| # By: Ryan Marshall | |
| # | |
| # This helper class will find the closes hex color from an array of other hex colors | |
| # | |
| # | |
| # colors = ["e00928","24519b","461b00", "dae12a", "ff9c3e",] | |
| # color = "285fa2" | |
| # | |
| class HexColor |
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
| { | |
| "items" => [ | |
| [0] { | |
| "type" => "dtg", | |
| "designId" => "5e87e09cd7a911160144e150", | |
| "products" => [ | |
| [0] { | |
| "id" => "gildan-cotton-t-shirt", | |
| "color" => "Black", | |
| "quantity" => 2, |
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
| { | |
| "statusCode" => 400, | |
| "issues" => [ | |
| [ 0] { | |
| "code" => "invalid_type", | |
| "path" => "items[0][type]", | |
| "message" => "String value required", | |
| "spec" => { | |
| "type" => "String", | |
| "description" => "The type of product this design is for", |
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
| Rollbar.configure do |config| | |
| # Without configuration, Rollbar is enabled in all environments. | |
| # To disable in specific environments, set config.enabled=false. | |
| config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] || Rails.application.secrets.rollbar_access_token | |
| # Here we'll disable in 'test' and 'dev': | |
| if Rails.env.test? or Rails.env.development? | |
| config.enabled = false | |
| end |