This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"image" | |
"os" | |
"image/png" | |
"image/color" | |
"image/draw" | |
"runtime" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# replace <rootpath> with the base path of your gtfs files... | |
DROP TABLE IF EXISTS agency; | |
CREATE TABLE agency | |
( | |
agency_id VARCHAR(10) PRIMARY KEY NOT NULL, | |
agency_name VARCHAR(255) NOT NULL, | |
agency_url VARCHAR(255) NOT NULL, | |
agency_timezone VARCHAR(20) NOT NULL, | |
agency_lang VARCHAR(10), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\CoreBundle\Classes\Cache; | |
class AcmeMemcached extends \Memcached { | |
function __construct($persistent_id) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var R = require("request"); | |
var key = process.env.TWITTER_CONSUMER_KEY; | |
var secret = process.env.TWITTER_CONSUMER_SECRET; | |
var cat = key +":"+secret; | |
var credentials = new Buffer(cat).toString('base64'); | |
var url = 'https://api.twitter.com/oauth2/token'; | |
R({ url: url, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//require NRD.js somewhere... | |
var models = new Backbone.Collection([ | |
new NRD.Model({type: 'image'}), | |
new NRD.Model({type: 'tweet'}) | |
]); | |
var masterView = new NRD.View(collection); | |
masterView.loadTemplates ( function () { | |
masterView.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE hack_test; | |
SELECT DISTINCT | |
s.stop_id, s.stop_sequence, s.pickup_type, s.drop_off_type, t.route_id, | |
t.trip_headsign, r.route_short_name,r.agency_id, st.stop_name, | |
st.stop_lat, st.stop_lon | |
FROM stop_times s LEFT JOIN trips t ON s.trip_id = t.trip_id | |
LEFT JOIN routes r ON t.route_id = r.route_id | |
LEFT JOIN stops st ON s.stop_id = st.stop_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var brazil = new google.maps.LatLng(-18.771115, -42.758789); | |
map = new google.maps.Map(document.getElementById('map-canvas'), { | |
center: brazil, | |
zoom: 5, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}); | |
layer = new google.maps.FusionTablesLayer({ | |
query: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tr class="template-download fade"> | |
{{#error}} | |
<td></td> | |
<td class="name"><span>{{name}}</span></td> | |
<td class="size"><span></span></td> | |
<td class="error" colspan="2"> | |
<span class="label label-important">{{error}}</span></td> | |
{{/error}} | |
{{^error}} |
NewerOlder