Skip to content

Instantly share code, notes, and snippets.

View edward's full-sized avatar

Edward Ocampo-Gooding edward

View GitHub Profile
$ dig +nocmd +noall +answer @4.2.2.1 assets.sinelabs.com CNAME
assets.sinelabs.com. 86400 IN CNAME assetsapp-h5u33nqa.dotcloud.com.
$ ruby -e 'puts 86400 / 3600.0'
24.0
They have a 1 day expiration time on the CNAME. If they updated it yesterday less than 24 hours ago, then they just need to wait.
message = <<MESSAGE_END
From: Robot <info@xxxxxxxx.com>
To: Somebody <YOUR@EMAIL.com>
MIME-Version: 1.0
Content-type: text/html
Subject: Analytics
Site analytics
<table cellpadding="10" cellspacing="0" border="1">
@edward
edward / gist:3123605
Created July 16, 2012 16:24
Example updating of a fulfillment tracking number and company
Request:
PUT https://7ea7a2ff231a9f7d4be696837482e55f:SOME_WORKING_PASSWORD@iliketurtles.myshopify.com/admin/orders/17821822/fulfillments/7784932.xml
<?xml version="1.0" encoding="UTF-8"?>
<fulfillment>
<tracking-number>some tracking number</tracking-number>
<tracking-company>some company</tracking-company>
</fulfillment>
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"?>
<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>
<?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>

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.