create
// buildings
(church:Building {name:'Veberöds kyrka', founded: 1200, geolocation: '55.6347487,13.4897019'}),
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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 api = require('./API.js'); | |
var route = ['f','r','r','f'], | |
move = '', | |
env = [], | |
lastEnv = []; | |
function next() { | |
move = route.shift(); | |
} |
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 api = require('./API.js'); | |
var route = ['r','','l','f','f','f','f','','','','f','f','f','f','f'], | |
move = '', | |
env = [], | |
lastEnv = []; | |
function next() { | |
move = route.shift(); | |
} |
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
video="$TM_DROPPED_FILE" | |
echo -n "<video controls="controls" src="\"$video\" "></video>" |
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
WEBVTT | |
1 | |
00:00:13.000 --> 00:00:16.100 | |
I heard about this <c.arduino>arduino</c> project, and I saw it online - | |
2 | |
00:00:16.100 --> 00:00:20.100 | |
- and I said 'Wow! <00:00:18.100>a lot of people are starting to talk about this. I should check it out!' |
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 contracthours=165,hourrate=123,sum=0,now=new Date,firstday=1,nextday=now.getDate()-(now.getHours()<15?1:0),lastday=(new Date((new Date).setFullYear(now.getFullYear(),now.getMonth()+1,0))).getDate(),workdaysdone=0,workdaysleft=0,msg;for(var d=firstday;d<=lastday;d++){var day=new Date((new Date).setFullYear(now.getFullYear(),now.getMonth(),d)),weekday=day.getDay();if(weekday!==0&&weekday!==6){if(d<=nextday)workdaysdone++;else workdaysleft++}}[].slice.apply(document.querySelectorAll('span[id*="lblTimer"]')).forEach(function(a){sum+=parseFloat(a.innerText)||0});msg=contracthours+" total hours\n"+sum+" hours ("+Math.round(sum/workdaysdone*10)/10+" hours / workday) worked so far.\n"+(contracthours-sum)+" hours ("+Math.round((contracthours-sum)/workdaysleft*10)/10+" hours / workday) to go.\n"+Math.floor(sum*hourrate)+" dkk earned so far";alert(msg) |
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
Here is an obfuscated email address: <a class="obsfuscated" href="#">moc.elpmaxe@zyx</a>. |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
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
int ledPin = 6; | |
int btnPin = 2; | |
int state = 0; | |
int power = 0; | |
float diff = 0; | |
int steps = 30; | |
int statesArray[4] = {0, 85, 170, 255}; |
OlderNewer