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
:root { | |
--ultra-light-gray: #eee; | |
--light-gray: #ccc; | |
--dark-gray: #444; | |
--gray: #999; | |
--black: #000; | |
--accent-1: #0098f8; | |
--accent-2: #00b4a6; | |
} |
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 io import BytesIO | |
from urllib2 import urlopen | |
from chalice import Chalice, BadRequestError | |
from mutagen.mp3 import MP3 | |
app = Chalice(app_name='mp3info') | |
@app.route('/') |
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 chalice import Chalice | |
app = Chalice(app_name='mp3duration') | |
@app.route('/') | |
def index(): | |
return {'hello': 'world'} |
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
<div id="currentNumber"> </div> | |
<button id="increment">+</button> | |
<button id="reset">Reset</button> | |
<script src="https://cdn.firebase.com/v0/firebase.js"></script> | |
<script> | |
var currentNumber = document.getElementById('currentNumber'); | |
var incrementButton = document.getElementById('increment'); | |
var resetButton = document.getElementById('reset'); |
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>WebSocket Test</title> | |
</head> | |
<body> | |
<script> | |
var ws = new WebSocket('ws://172.18.246.234:8080/p5websocket'); | |
ws.onopen = function() { |
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
<script> | |
// Create a connection to the server | |
var ws = new WebSocket('ws://172.18.246.234:8080/p5websocket'); | |
// As soon as the connection is established, send a "Ping" message to the server | |
ws.onopen = function() { | |
ws.send('Ping'); | |
}; | |
// Whenever we receive a message from the server, display it in a popup |
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
# generated by Slic3r 0.9.8 on Mon Feb 25 19:40:40 2013 | |
bed_size = 140,140 | |
bed_temperature = 110 | |
bottom_solid_layers = 3 | |
bridge_fan_speed = 100 | |
bridge_flow_ratio = 1 | |
bridge_speed = 60 | |
brim_width = 0 | |
complete_objects = 0 | |
cooling = 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
from PIL import Image | |
im = Image.open(myfile) | |
info = im._getexif() | |
orientation = info.get(274,1) | |
if orientation == 3: | |
im.rotate(180) | |
elif orientation == 5 or orientation == 6: |
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
<object style="width:630px;height:600px"> | |
<param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&embedBackground=%23ffffff&shareMenuEnabled=false&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23ffffff&documentId=120831175130-0a8197e8ecc74535a2771076491338a9"> | |
<param name="allowfullscreen" value="true"> | |
<param name="menu" value="false"> | |
<param name="wmode" value="transparent"> | |
<embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:630px;height:600px" flashvars="mode=mini&embedBackground=%23ffffff&shareMenuEnabled=false&printButtonEnabled=false&shareButtonEnabled=false&searchButtonEnabled=false&backgroundColor=%23ffffff&documentId=120831175130-0a8197e8ecc74535a2771076491338a9"> | |
</object> |
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": "Bucerius Kunst Forum", | |
"icon": "http://www.kunstmeile-hamburg.de/static/theme/kunstmeile/img/sub_navigation_bucerius_kunst_forum_icon.jpg", | |
"link": "http://www.kunstmeile-hamburg.de/de/bucerius-kunst-forum-2", | |
"events": [ | |
{ | |
"title": "New York Photography. Von Stieglitz bis Man Ray", | |
"subtitle": "Ausstellung", | |
"date_start": "2012-05-17", |