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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>http://www.example.com</AllowedOrigin> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedHeader>Content-Type</AllowedHeader> | |
<AllowedHeader>x-amz-acl</AllowedHeader> | |
<AllowedHeader>origin</AllowedHeader> | |
</CORSRule> | |
<CORSRule> |
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
// Generated on 2013-10-21 using generator-webapp 0.4.3 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> body,input,button { font-size:1.8em; } </style> | |
</head> | |
<body> | |
<button id="start">Start</button> | |
<div id="monitor"></div> | |
<script> |
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 Signals = (function () { | |
function Signals() { | |
this.leds = { | |
"LED1": { light: false, type: undefined, intervalId: undefined, pin: LED1 }, | |
"LED2": { light: false, type: undefined, intervalId: undefined, pin: LED2 }, | |
"LED3": { light: false, type: undefined, intervalId: undefined, pin: LED3 } | |
}; | |
} | |
Signals.prototype.initLEDs = function (patterns) { | |
for (var p in patterns) { |
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
declare function setWatch(callback: (...args: any[]) => void, pin: any, mode: any): any; | |
declare var exports: any; | |
declare var require: { | |
(obj: any): any; | |
} | |
declare var A0: espruinoPin; | |
declare var A1: espruinoPin; | |
declare var A2: espruinoPin; | |
declare var A3: espruinoPin; |
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
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<title>feedReader Demo</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="shortcut icon" href="/favicon.ico"> | |
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | |
<!-- build:css(.) styles/vendor.css --> |
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
setWatch(function() { | |
LED2.write(1); | |
setTimeout(function() { | |
LED2.write(0); | |
}, 3000); | |
}, A1, {repeat:true, edge:"rising"}); |
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
$default-theme-color: lighten(green, 15); | |
p.test { | |
font-weight: bold; | |
font-size: 3em; | |
color: blue; | |
background-color: $default-theme-color; | |
} | |
@mixin my-button($color) { |
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 on = false; | |
var id = setInterval(function() { | |
on = !on; | |
A8.write(on); | |
},1000); |
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 options = { | |
tx:B6, // wired 3 Pin(RX) on TWE-Lite | |
rx:B7, // wired 10 Pin(TX) on TWE-Lite | |
bytesize:8, | |
parity:'none', | |
stopbits:1, | |
flow:'none' | |
}; | |
Serial1.setup(115200, options); |