Skip to content

Instantly share code, notes, and snippets.

View edward's full-sized avatar

Edward Ocampo-Gooding edward

View GitHub Profile
http://projectofhow.com/methods/negative-brainstorming/#
A method that uses brainstorming to generate bad solutions to the problem, and then see how those could be transformed into good solutions.
One way to generate ideas is to generate good solutions through brainstorming. Negative brainstorming takes a different angle on that. The method is a two-step process that consists of first generating the worst solutions to the problem then transforming them into good solutions. This can be a fun way to use brainstorming in a silly manner and solve problems from a different angle.
@edward
edward / gist:6430914
Last active December 22, 2015 06:28
GitHub workshop blurb

Interested in improving Shopify as a product / as a company? David and Edward are putting on a workshop to level up your Shopifier skillz with some new collaboration superpowers using GitHub and git.

This workshop is aimed at non-developers.

If you’re a top-down learner, read the next bit. If you’re a bottom-up learner, skip down.

Tell me of these super powers via top-down learning (Edward sez):

I was invited by Shopify to come and visit Ottawa for 3 Weeks while having a job-application there.

My homebase is the Les Suites Hotel in the city center.

It's the perfekt location to explore Ottawa, as it's close to the Byward Market, Ottawa River and the Rideau Canal.

I attached a couple of photos with dropbox.

Food & Drinks

class Bob
def hey(statement)
s = Statement.new(statement)
if s.is_silent?
'Fine. Be that way!'
elsif s.is_exclamatory?
'Woah, chill out!'
elsif s.is_interrogatory?
'Sure.'
puts (0..99).map {|i| srand(46308667) if (i%15).zero?; ["FizzBuzz", "Buzz", i+1, "Fizz"][rand(4)]}
# (create oauth2 tokens from Google Console)
client_id = ""
client_secret = ""
# (paste the scope of the service you want here)
# e.g.: https://www.googleapis.com/auth/gan
scope = ""
client = OAuth2::Client.new(API_CLIENT, API_SECRET, {
:authorize_url => 'https://accounts.google.com/o/oauth2/auth',
:token_url => 'https://accounts.google.com/o/oauth2/token',
# Set options that get passed on to Faraday
:connection_opts => {:proxy => { :uri => 'http://127.0.0.1:8888'} },
:ssl => {:verify => false}
})
$ 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>