This file has been truncated, but you can view the full file.
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
| {"states":[["Alaska","AK"],["Alabama","AL"],["Arkansas","AR"],["Arizona","AZ"],["California","CA"],["Colorado","CO"],["Connecticut","CT"],["District of Columbia","DC"],["Delaware","DE"],["Florida","FL"],["Georgia","GA"],["Hawaii","HI"],["Iowa","IA"],["Idaho","ID"],["Illinois","IL"],["Indiana","IN"],["Kansas","KS"],["Kentucky","KY"],["Louisiana","LA"],["Massachusetts","MA"],["Maryland","MD"],["Maine","ME"],["Marshall Islands","MH"],["Michigan","MI"],["Minnesota","MN"],["Missouri","MO"],["Mississippi","MS"],["Montana","MT"],["North Carolina","NC"],["North Dakota","ND"],["Nebraska","NE"],["New Hampshire","NH"],["New Jersey","NJ"],["New Mexico","NM"],["Nevada","NV"],["New York","NY"],["Ohio","OH"],["Oklahoma","OK"],["Oregon","OR"],["Pennsylvania","PA"],["Rhode Island","RI"],["South Carolina","SC"],["South Dakota","SD"],["Tennessee","TN"],["Texas","TX"],["Utah","UT"],["Virginia","VA"],["Vermont","VT"],["Washington","WA"],["Wisconsin","WI"],["West Virginia","WV"],["Wyoming","WY"]],"cities":[["Akutan",0,-165.7854,1] |
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
| { | |
| "repositories": [ | |
| { | |
| "type": "vcs", | |
| "url": "[email protected]:ibmjstart/wp-bluemix-sendgrid.git" | |
| }, | |
| { | |
| "type": "vcs", | |
| "url": "[email protected]:ibmjstart/wp-bluemix-objectstorage.git" | |
| }, |
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
| def save_objects(*objects) | |
| success = false | |
| ActiveRecord::Base.transaction do | |
| results = objects.map do |object| | |
| if object && !object.marked_for_destruction? | |
| object.save | |
| elsif object | |
| object.destroy | |
| else | |
| true |
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
| Gemfile.lock | |
| junk.* |
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 Foo | |
| class Bar | |
| end | |
| private_constant :Bar | |
| end | |
| module Foo | |
| p Bar.new # => works fine because we're scoped to Foo |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Solar Sound Inc | Entertainment </title> | |
| <%= stylesheet_link_tag "application" %> | |
| <%= javascript_include_tag "application" %> | |
| <%= csrf_meta_tags %> | |
| <style type="text/css"> | |
| body { | |
| padding-top: 60px; |
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 fs = require('fs'); | |
| var vm = require('vm'); | |
| var emberjs = fs.readFileSync('public/javascripts/vendor/ember-0.9.5.min.js', 'utf8'); | |
| var templatesDir = 'templates'; | |
| var destinationDir = 'public/javascripts/templates'; | |
| function compileHandlebarsTemplate(templatesDir, fileName) { | |
| var file = templatesDir + '/' + fileName; |
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
| Davids-MacBook-Pro:blog daviddotterweich$ git.add | |
| -bash: git.add: command not found | |
| Davids-MacBook-Pro:blog daviddotterweich$ git. | |
| -bash: git.: command not found | |
| Davids-MacBook-Pro:blog daviddotterweich$ git. add | |
| -bash: git.: command not found | |
| Davids-MacBook-Pro:blog daviddotterweich$ git | |
| usage: git [--version] [--exec-path[=<path>]] [--html-path] | |
| [-p|--paginate|--no-pager] [--no-replace-objects] | |
| [--bare] [--git-dir=<path>] [--work-tree=<path>] |
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 MyClass | |
| def self.my_method | |
| 100.times do |index| | |
| yield 100, index + 1 if block_given? | |
| end | |
| 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
| class AdminController < ApplicationController | |
| before_filter do |controller| | |
| controller.redirect_to login_path unless logged_in? | |
| end | |
| end |
NewerOlder