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> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
// TODO: create a handler | |
window.addEventListener('load', function(){ | |
// TODO: register the handler | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<meta charset="utf-8"> | |
<title>Largest Cities In the US</title> | |
<script type="text/javascript" src="cities.json"></script> | |
<script> | |
function getData() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from slackclient import SlackClient | |
BOT_NAME = # provide your bot's name/handle, without the @ | |
slack_client = SlackClient(os.getenv('SLACK_BOT_TOKEN')) | |
api_call = slack_client.api_call("users.list") | |
if api_call.get('ok'): | |
users = api_call.get('members') | |
for row in reader: | |
for user in users: |
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
curl -XPOST 'localhost:9200/twitter/tweets' -H 'Content-type:application/json' -d ' | |
{ | |
"date" : "2014-09-13", | |
"name" : "Mary Jones", | |
"tweet" : "Rational databases are so yesterday", | |
"user_id" : 2, | |
"likes": 1, | |
"location": "37.910076, -122.065186" | |
} | |
' |
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
curl -XPOST 'localhost:9200/twitter/tweets/1' -H 'Content-type:application/json' -d ' | |
{ | |
"date" : "2014-09-13", | |
"name" : "Mary Jones", | |
"tweet" : "Relational databases are so yesterday", | |
"user_id" : 2, | |
"likes": 1 | |
} | |
' |
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
{ | |
"version": 8, | |
"name": "OSM Bright", | |
"metadata": { | |
"mapbox:type": "template", | |
"mapbox:groups": { | |
"1444849364238.8171": { | |
"collapsed": true, | |
"name": "Buildings" | |
}, |
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
POSTGRES_USER=zika_app_user | |
POSTGRES_PASS=somethingsensible | |
POSTGRES_DBNAME=zika | |
ALLOW_IP_RANGE=<0.0.0.0/0> |
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
spring.datasource.driver-class-name=org.h2.Driver | |
spring.datasource.url=jdbc:h2:mem:test | |
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.H2Dialect | |
spring.jpa.hibernate.ddl-auto=update |
NewerOlder