Skip to content

Instantly share code, notes, and snippets.

View cocolote's full-sized avatar
💭
Working on Chromebook

Ezequiel Jose Lopez cocolote

💭
Working on Chromebook
View GitHub Profile
@cocolote
cocolote / Params-Forms-CFML.md
Last active August 29, 2015 14:24
The params array of CFML

Setting variables and sending values with forms CFML

  1. Set the variables to use with the form under line
<cfparam name = "form.contactname" default = "" />
<cfparam name = "form.email" default = "" />
<cfparam name = "form.message" default = "" />
<cfparam name = "form.submitted" default = "0" />
@cocolote
cocolote / DM-CFML.md
Last active August 29, 2015 14:24
Decision Making structures ColdFusion

#Decision Making Structures

  • Operators

CFML and CFScirpt | CF8+ CFScript Only --- | --- | --- IS, EQUAL, EQ | == IS NOT, NOT EQUAL, NEQ | != GT, GREATER THAN, LT, LESS THAN, GTE, LTE | >, <, >=, <= CONTAINS | N/A

@cocolote
cocolote / Rails-assets-pipe.md
Last active August 29, 2015 14:21
Rails: How to fix the assets pipe to work with Heroku

The annoying Assets Pipe problem with Heroku and Rails

1_ in config/environments/production.rb

Set config.assets.compile = false to config.assets.compile = true

2_ in config/application.rb

Add the line config.assets.compile = true

@cocolote
cocolote / favorite_movies.rb
Created February 4, 2015 16:37
Favorite Movies
favorite_movies = [
{ title: 'The Big Lebowski', year_released: 1998, director: 'Joel Coen', imdb_rating: 8.2 },
{ title: 'The Shining', year_released: 1980, director: 'Stanley Kubrick', imdb_rating: 8.5 },
{ title: 'Troll 2', year_released: 1990, directory: 'Claudio Fragasso', imdb_rating: 2.5 }
]
favorite_movies.each{ |movie| puts "#{movie[:year_released]}: #{movie[:title]}" }
@cocolote
cocolote / data.rb
Created January 30, 2015 14:51
Twitter data
def twitter_data
[{"LaunchAcademy_"=>
{"description"=>
"A 10 week, intensive bootcamp teaching you how to code with a focus on Ruby on Rails",
"last twenty tweets"=>
["RT @chrisccerami: While learning web development I created a map of all of the shows @Screamales have played and damn @DonGiovanniRecs http…",
"6 ways to quantify your code and why you need to do it: http://t.co/1WKtpo41tP by @kevinrcasey http://t.co/lulzPLTY8c",
"Do more of what you want at work. How to create productive partnerships: http://t.co/QpYpHhHEid by @benvoss",
"RT @Pistachio: SO rad. bunch of local women learning to code with @gdiBoston at @HubSpot right now: http://t.co/jaIxK7suOj",
"RT @STWatkins78: Huge breakthrough on my breakable toy today...can upload local file to soundcloud from my app...time for a beer! #LaunchAc…",
@cocolote
cocolote / AppAcademy_.idea_.name
Created September 4, 2014 04:47
Exercises for App Academy
AppAcademy