http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
// old way of doing it | |
var number = $('<div class="number"></div>'); | |
var articleNumber = i +1; | |
if(articleNumber < 10) { | |
number.text('0' + articleNumber); | |
} else { | |
number.text(articleNumber); | |
} | |
// but instead do this |
export default rgb2hex = rgb => rgb.trim() | |
.replace(/^rgb\(|\)/g, '') | |
.split(',') | |
.reduce((str, v) => str + parseInt(v).toString(16).padLeft(2, '0'), '#'); |
((items) => { | |
convertEmoji = str => { | |
// Converts a string of characters to CSS escapes | |
// str: sequence of Unicode characters | |
let highsurrogate, outputString; | |
highsurrogate = 0; | |
outputString = ''; | |
for (let i = 0; i < str.length; i++) { | |
let cc = str.charCodeAt(i); | |
if (cc < 0 || cc > 0xFFFF) { |
#!/bin/bash | |
curl -s http://webservices.nextbus.com/service/publicJSONFeed\?command\=predictions\&a\=sf-muni\&r\=3\&s\=6604 | jq '.predictions.direction.prediction[0].minutes' |
http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
#!/bin/bash | |
git log --pretty=format:"%cr - %s" --no-merges -7 |
#!/bin/bash | |
if [ -z "$1 " ] | |
then | |
today=$(date '+%Y-%m-%d') | |
else | |
today=$1 | |
fi | |
file="$today.txt" |
const assert = require('assert'); | |
function *sweetFunction(array) { | |
const colCount = array[0].length; | |
const rowCount = array.length; | |
const diagonalCount = 1 << (Math.max(colCount, rowCount) - 1); | |
for (let d = 0; d <= diagonalCount; ++d) { | |
const minR = d >= colCount ? d - colCount + 1 : 0; | |
let r = d < rowCount ? d : rowCount - 1; |
{ | |
"basics": { | |
"name": "Dillon Christensen", | |
"label": "Fullstack Javascript Developer", | |
"email": "j.dillon.christensen@gmail.com", | |
"phone": "(918) 896-7033", | |
"summary": "Product developer with experience across browsers, operating systems, devices, and architectural layers. Specializing in javascript development with React and RESTful APIs. Recognized for being a clear and effective communicator and mediating software disciplines and stakeholder concerns. Motivated by a love of learning which leads to new opportunities and challenges to learn from different projects and teams.", | |
"location": { | |
"postalCode": "OK 74008", | |
"city": "Bixby", |