Skip to content

Instantly share code, notes, and snippets.

View edward's full-sized avatar

Edward Ocampo-Gooding edward

View GitHub Profile
Team,
Diablo 3 comes out tomorrow. Since 90% of you won't be able to concentrate anyways let's just meet tomorrow after lunch in the Lounge for an impromptu Lan party.
Need a refresher on why you need to play Diablo 3 ? http://www.youtube.com/watch?v=geuAc8F7Gt0&feature=g-hist
P.S: I call dips on jewelry drops.
- tobi
@edward
edward / leaderboard.js
Created April 11, 2012 05:45
Bug in Meteor client-side update
// See line 45 for the exception I'm trying to figure out
// Set up a collection to contain player information. On the server,
// it is backed by a MongoDB collection named "players."
Players = new Meteor.Collection("players");
function random_score () {
return Math.floor(Math.random()*10)*5;
}
Process: ruby [6227]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ruby [6203]
Date/Time: 2012-01-30 18:01:56.705 -0500
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9
@edward
edward / learning_basic_programming.md
Created November 7, 2011 14:41
Tech-ing Up: Learning basic programming

Tech-ing Up: Learning basic programming

Coming from http://www.reddit.com/r/canada/comments/m1494/looking_for_a_developer_advocate_for_shopify/ or elsewhere? Awesome.

This is a guide for learning the bare minimum needed for effectively working as a junior programmer or developer advocate at most software companies.

If you haven’t ever programmed before, don’t sweat it. Those who would be good fits at this job are naturally attuned to this stuff and their innate curiosity makes it a cakewalk. If you’re finding that it’s a frustrating experience the entire way through, then you should consider doing something else for a little while before you come back to give it another shot.

A first stab at programming

<?xml version="1.0"?>
<transactions type="array">
<transaction>
<kind>sale</kind>
<created-at type="datetime">2011-04-13T15:02:05-04:00</created-at>
<order-id type="integer">59220782</order-id>
<amount type="decimal">39.0</amount>
<authorization nil="true"/>
<status>success</status>
<receipt type="yaml">--- paid_amount: "39.00" </receipt>
<?xml version="1.0"?>
<order>
<number type="integer">75</number>
<name>#1075</name>
<created-at type="datetime">2011-04-13T15:01:52-04:00</created-at>
<total-discounts type="decimal">0.0</total-discounts>
<cancel-reason>customer</cancel-reason>
<token>964c065a5cd5644cb50bffb3d54e6da8</token>
<updated-at type="datetime">2011-05-18T15:56:43-04:00</updated-at>
<total-price type="decimal">39.0</total-price>

Hello there!

Looking for a free conference ticket to JSConf 2011 in beautiful Portland, OR USA? Well, Shopify is looking for awesome Shopify App Developers! So let’s make something happen. [shopify.com/partners]

To win

Using the Shopify API, solve the following puzzle, follow @shopifyapi, and send the answer to apps@shopify.com

My Aunt Ruth’s birthday is coming up, and I’d like to get her her favourite candy.

Hello there!

Looking for a free ticket to CodeConf? Well, Shopify is looking for awesome Shopify App Developers! So let’s make something happen. [shopify.com/partners]

To win

Using the Shopify API, create a product on the *Cronin, Feest, and Kutch* store and include your contact info in the product description. The product can be whatever you want, so go nuts! The most awesome product, as decided by our whims, wins!

*Products must be created by 11:59pm EDT, Tuesday April 5th 2011.* Winners will be announced the next day.

###############################################################################
# START HERE: Tutorial 3: More advanced scraping. Shows how to follow 'next'
# links from page to page: use functions, so you can call the same code
# repeatedly. SCROLL TO THE BOTTOM TO SEE THE START OF THE SCRAPER.
###############################################################################
require 'nokogiri'
require 'open-uri'
BASE_URL = 'http://www.madingley.org/uploaded/'
The url:
http://search.shopify.com/search?q=gumball&min=&max=&limit=100
The sizes:
pico
icon
thumb
small
compact