This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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) |
This file contains hidden or 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
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(13, OUTPUT); | |
| } | |
| void loop() { | |
| String serialString; | |
| while (Serial.available()) { | |
| serialString += Serial.read(); | |
| } |
This file contains hidden or 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
| import unittest | |
| import json | |
| import uppr | |
| class ApiTests(unittest.TestCase): | |
| def setUp(self): |
This file contains hidden or 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
| import os | |
| class Config(object): | |
| DEBUG = False | |
| TESTING = False | |
| CSRF_ENABLED = True | |
| SECRET_KEY = 'temporary_secret_key' | |
| class ProductionConfig(Config): | |
| pass |
This file contains hidden or 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
| import sys | |
| from collections import Counter | |
| c1 = Counter(sys.argv[1]) | |
| c2 = Counter(sys.argv[2]) | |
| c1.subtract(c2) | |
| print not any(c1.values()) |
This file contains hidden or 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 hidden or 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" | |
| } |
OlderNewer