Skip to content

Instantly share code, notes, and snippets.

View vanessaklee's full-sized avatar

Vanessa Lee vanessaklee

  • Austin, TX
View GitHub Profile
#!/usr/bin/env python
import re
import requests
url = 'https://api.github.com'
headers = {'Authorization': 'token f62f5dd509ad5af86b4253e36a6852e9ce01f3e8'}
next_url_pattern = r'<(.*)>; rel="next"'
def all(url, headers):
<?php
function postCommission() {
$rlia = $this->getResLineItems();
$rid = $this->getResItemId();
$skip = false;
$cruise_items = explode(",", CRUISE_CABIN_IDS);
array_push($cruise_items, CRUISE_COMM_PORT_FEES_ITEM_ID);
array_push($cruise_items, CRUISE_COMM_PORT_TAXES_ITEM_ID);
if ($this->isCruise()) {
@vanessaklee
vanessaklee / ember-routes
Created March 14, 2012 15:34
Trouble with sproutcore routes in ember project
added to main.js
Em.routes.add('contracts', App, App.routes.contractsRoute);
added to routes.js
contractsRoute: function(params) {
App.stateManager.goToState('contracts');
}
attempt this location
http://perxwerx.perx.dev/itt-transfer-contracts/contracts