Skip to content

Instantly share code, notes, and snippets.

View Lrmanfre's full-sized avatar

Lawrence Manfredi Lrmanfre

View GitHub Profile
@Lrmanfre
Lrmanfre / 0_reuse_code.js
Created May 7, 2014 01:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Lrmanfre
Lrmanfre / jquery_challenge.js
Last active August 29, 2015 13:57 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
$(document).ready(function(){
//RELEASE 0:
//Link this script and the jQuery library to the jquery_example.html file and analyze what this code does.
$('body').css({'background-color': 'pink'})
//RELEASE 1:
//Add code here to select elements of the DOM
bodyElement = $('body')
Psuedocode for the NYC apartment listing scraper:
Please focus on:
1) User stories
2) functionality
3) Specific funtions of the webpage, ruby code, api and database
Api's suggested: (put api name and what data we will be getting)
Psuedocde starts here:
@Lrmanfre
Lrmanfre / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:55 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class Boggle_Board
attr_reader :dice_grid
def initialize (dice_grid)
@dice_grid = dice_grid
end
# This takes a specfied set of coordinates in the form of multiple 2 element
# arrays.
# Without the splat operators, I get rb:11:in `create_word': wrong number of