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
ul.list { | |
list-style-type: none; | |
padding: 0; | |
font-size: 2em; | |
text-align: center; | |
} | |
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
{ | |
"/work": "8ad52561445ec13c0d04", | |
"/about": "e63b610e2ce53f4d6aba", | |
"/local": "f7c18ce5e76151cbaf93" | |
} |
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
<canvas id="canvas"></canvas> |
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 Local = function() { | |
var path = document.location.pathname.split("/"); | |
path = path[4]; | |
var ajax = $.ajax({ | |
url: "/" + path + "/files" | |
}); | |
ajax.done(this.onGetFiles.bind(this)); | |
this.data = { | |
description: decodeURI(path) + "#no-index #crumbs", |
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 axios = require('axios'); | |
var findPassTime = function(latitude, longitude) { | |
return axios.get('http://api.open-notify.org/iss-pass.json', { | |
params: { | |
lat: latitude, | |
lon: longitude | |
} | |
}) |
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 WebKitBufferPlayer = function(audiolet, url) { | |
AudioletNode.call(this, audiolet, 0, 1); | |
this.isWebKit = this.audiolet.device.sink instanceof Sink.sinks.webkit; | |
this.context = this.audiolet.device.sink._context; | |
if (this.isWebKit) { | |
this.xhr = new XMLHttpRequest(); | |
this.xhr.open("GET", url, true); | |
this.xhr.responseType = "arraybuffer"; |
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 data = this.canvas.toDataURL(); | |
var request = new Request({ | |
url: 'http://127.0.0.1:8080', | |
onFailure: function(xhr) { | |
console.error(xhr); | |
} | |
}); | |
url = request.send('data=' + data + '&frame=' + this.frameCount); |
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 template_globals import template_globals | |
hooks = { | |
"page.template.pre" : [template_globals] | |
} |
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
# Useful locations | |
MBED = ../../mbed/build/mbed | |
# MCU | |
MANUFACTURER=STM | |
FAMILY=STM32F4XX | |
MCU=STM32F407 | |
# Files | |
SRC = $(wildcard *.cc) |
OlderNewer