Skip to content

Instantly share code, notes, and snippets.

View charliequinn's full-sized avatar
🏠
Working from home

Charlie Quinn charliequinn

🏠
Working from home
View GitHub Profile
@charliequinn
charliequinn / gist:611a6dc37c15857f97f69e26cfd8ddf6
Created November 22, 2016 11:47
jsforce and salesforce query
var username = ''
var password = ''
var conn = new jsforce.Connection({
oauth2 : {
// you can change loginUrl to connect to sandbox or prerelease env.
loginUrl : '',
clientId : '',
clientSecret : '',
redirectUri : ''
@charliequinn
charliequinn / gist:6df89b2ae28c95762e9a
Last active August 29, 2015 14:06
Twig server side developers
Twig World is recruiting for server-side web developers, at all levels, to
join our team. Ideally you would be able to join the team in our Glasgow
office, but remote work may be a possibility for the right candidate.
Successful candidates will be helping to create and maintain our web
applications delivering exceptionally high quality educational content to
over 50 countries and in a dozen different languages.
We primarily work in Python and Django. Candidates with prior experience
in these technologies will be given extra consideration, but all
candidates with a strong grasp of programming principles and experience
Hey all,
tl;dr - Get your ticket: https://pythonglasgow-dojo-october-2014.eventbrite.co.uk/
Next month we are running another Dojo! Twig are graciously hosting
us again and will be providing pizza, beer and soft drinks. The
office address is:
4th Floor
14 North Claremont Street
{
// Your username on GitHub
"username": "charliequinn",
// Your password on GitHub
"password": "Bi11Hick5",
// Proxy server
// Format: "http://user:pass@proxy:port"
"https_proxy": ""
@charliequinn
charliequinn / common.rb
Created November 24, 2011 15:30
state machine -- Depending on where you include Workflow::Common (before or after state_machine definition) will determine which class' state_machine your module's after_transition is added to
module Workflow
module Common
def self.included(klass)
klass.state_machine.after_transition(:on => :record_replacement_product) do |obj|
obj.claim.send(:"finish_replacement_order")
end
end
end
end
class ReverseWords
def self.perform_magic filename
end
def self.parse_file(filename)
results = []
File.open(filename).each do |line|
results << line.split(" ")