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
{"created":1326853478,"data":{"object":{"amount":100,"amount_refunded":0,"card":{"address_country":null,"address_line1":null,"address_line1_check":null,"address_line2":null,"address_state":null,"address_zip":null,"address_zip_check":null,"country":"US","cvc_check":null,"exp_month":8,"exp_year":2013,"fingerprint":"yDYVpmGorv6HbB5u","id":"cc_00000000000000","last4":"4242","name":null,"object":"card","type":"Visa"},"created":1340205965,"currency":"usd","customer":null,"description":"MyFirstTestCharge(createdforAPIdocs)","disputed":false,"failure_message":null,"fee":0,"fee_details":[],"id":"ch_00000000000000","invoice":null,"livemode":false,"object":"charge","paid":true,"refunded":false}},"id":"evt_00000000000000","livemode":false,"object":"event","type":"charge.succeeded"} | |
WebhooksController parse stripe webhook should parse the data from the post | |
Failure/Error: post 'stripe', @example_success | |
JSON::ParserError: | |
757: unexpected token at '&data%5Bobject%5D%5Bamount%5D=100&data%5Bobject%5D%5Bamo |
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
RAILS_ENV=production be cap deploy | |
triggering load callbacks | |
* 2013-06-17 09:10:19 executing `production' | |
triggering start callbacks for `deploy' | |
* 2013-06-17 09:10:19 executing `multistage:ensure' | |
* 2013-06-17 09:10:19 executing `deploy' | |
* 2013-06-17 09:10:19 executing `deploy:update' | |
** transaction: start | |
* 2013-06-17 09:10:19 executing `deploy:update_code' | |
updating the cached checkout on all servers |
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
$ pg_restore --verbose --clean --no-acl --no-owner -d viddy latest.dump | |
pg_restore: connecting to database for restore | |
pg_restore: dropping MATERIALIZED VIEW DATA station_additions | |
pg_restore: dropping MATERIALIZED VIEW DATA current_stations | |
pg_restore: dropping FK CONSTRAINT station_updates_execution_id_fkey | |
pg_restore: [archiver (db)] Error while PROCESSING TOC: | |
pg_restore: [archiver (db)] Error from TOC entry 2742; 2606 16432 FK CONSTRAINT station_updates_execution_id_fkey ufasaucshs5ksb | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.station_updates" does not exist | |
Command was: ALTER TABLE ONLY public.station_updates DROP CONSTRAINT station_updates_execution_id_fkey; |
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
# This relies on chicago-classifications.json being in the | |
# same folder as this parse_json.py file | |
# | |
# It will then make a .tsv from the JSON stream | |
# Kickass, Mr. Fidino and @sethherr | |
import json | |
cww_json = open( "chicago-classifications.json", "r" ) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Data Layer: Styling</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<style> | |
html, body, #map-canvas { | |
height: 100%; | |
margin: 0px; |
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
""" | |
Some information about OAuth on the Bike Index available, srys, still under development | |
https://github.com/bikeindex/omniauth-bike-index | |
""" | |
from social.backends.oauth import BaseOAuth2 | |
class BikeIndexOAuth2(BaseOAuth2): | |
name = 'bikeindex' | |
ID_KEY = '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
name | website | frame_maker | open_year | close_year | logo_url | |
---|---|---|---|---|---|---|
24seven | http://www.leisurelakesbikes.com/bikes/bmx-bikes/b/24seven | true |