Skip to content

Instantly share code, notes, and snippets.

View agraebe's full-sized avatar

Alexander Graebe agraebe

  • California, USA
  • 13:13 (UTC -07:00)
View GitHub Profile
@agraebe
agraebe / dabblet.css
Created February 9, 2016 22:38
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@agraebe
agraebe / dabblet.css
Created February 9, 2016 22:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
jkljld
app.get('/api/login', function(request, response) {
var url = uber.getAuthorizeUrl(['history','profile', 'request', 'places']);
response.redirect(url);
});
@agraebe
agraebe / ride_details.json
Last active August 24, 2016 17:48
Sample response for ride details
{
...
"location": {
"latitude": 37.3382129093,
"longitude": -121.8863287568,
"bearing": 328
},
"pickup": {
"latitude": 37.3303463,
"longitude": -121.8890484,
@agraebe
agraebe / place_details.json
Last active August 24, 2016 19:54
Sample response for place_id
{
"html_attributions" : [],
"result" : {
"address_components" : [
{
"long_name" : "San Francisco",
"short_name" : "SF",
"types" : [ "locality", "political" ]
},
Verifying my Blockstack ID is secured with the address 1JETYdTtrqJmsSUXYD4Nmafs8Y8mfjEi4C https://explorer.blockstack.org/address/1JETYdTtrqJmsSUXYD4Nmafs8Y8mfjEi4C
885ee5a41e5378da0e942fa037bc52e931a47855f7b76dd8cb9b3163fbb56f6fda08f0f05463fb7675c4f38361de53746850ae2c28e2d886e54e77bbc5bf6107
@agraebe
agraebe / v3-create-trip.json
Last active August 6, 2019 16:25
JSON Schema Definition: HyperTrack - Trip Creation
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"additionalProperties": false,
"title": "The Root Schema",
"required": ["device_id"],
"properties": {
"device_id": {
@agraebe
agraebe / trip-creation.sh
Created September 26, 2019 19:18
Create a new trip
payload='{
"device_id": "<YOUR_DEVICE_ID>",
"destination": {
"geometry": {
"type": "Point",
"coordinates": [-122.398, 37.793]
}
}
}'
@agraebe
agraebe / trip-creation-geofences.sh
Created September 27, 2019 23:12
Create a trip with geofences
payload='{
"device_id": "<YOUR_DEVICE_ID>",
"geofences": [{
"geometry": {
"type": "Point",
"coordinates": [-121.3980960195712, 38.7930386903944]
},
"metadata": {
"stop_id": "12345XYZ",
"stop_name": "SF office"