Skip to content

Instantly share code, notes, and snippets.

@prichey
prichey / create-twilio-subaccount.js
Created August 24, 2017 17:48
Create Twilio Subaccount with Node
// The documentation on the Twilio site is wrong. (https://www.twilio.com/docs/api/rest/subaccounts#example)
// It looks like client.accounts.create() was deprecated so you have to use the old API.
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);
client.api.v2010.accounts.create(
{
friendlyName: 'Subaccount'
},
@prichey
prichey / 0_reuse_code.js
Last active August 29, 2015 14:17
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

Keybase proof

I hereby claim:

  • I am prichey on github.
  • I am prichey (https://keybase.io/prichey) on keybase.
  • I have a public key whose fingerprint is 7DF0 BCB6 E633 9F1A 629C 687D 9E59 8E0B EDEE D4BE

To claim this, I am signing this object:

@prichey
prichey / rainbow_wbc.py
Last active November 3, 2016 05:07
Comment heart emoji on WBC's most recent Vine video
import vinepy
def main():
vine = vinepy.API(username='XXXXX@XXXX.XXX', password='XXXXXXXX')
#say hello to westboro baptist
wbc_id = 984602341204725760
wbc_timeline = vine.get_user_timeline(user_id = wbc_id)
post = wbc_timeline[0]