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"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/iconsets/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
#!/bin/bash | |
APPLICATION_TOKEN=a3MxpesaEnciPeqqsYBrzZatpwrDQ9 | |
USER_TOKEN=$PUSHOVER_USER_TOKEN | |
URL=https://api.pushover.net/1/messages.json | |
function push_alert() { | |
curl -s \ | |
-F "token=$APPLICATION_TOKEN" \ | |
-F "user=$USER_TOKEN" \ |
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
function make_iter(f) | |
return function(...) | |
local args = ... | |
local co = coroutine.create(f) | |
return function() | |
if coroutine.status(co) == "dead" then | |
return nil | |
end | |
_, result = coroutine.resume(co, args) | |
return result |
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
function AssertionError(message) { | |
this.name = "AssertionError"; | |
this.message = message || "Assertion Error"; | |
} | |
AssertionError.prototype = new Error(); | |
AssertionError.prototype.constructor = AssertionError; | |
function Tests() { | |
this.tests = []; | |
} |
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
#!/bin/bash | |
# This script downloads a gravatar image associated with EMAIL and saves it at | |
# AVATAR_OUTPUT_PATH then creates a favicon icon and saves it at | |
# FAVICON_OUTPUT_PATH. | |
EMAIL="hector.dearman@gmail.com" | |
AVATAR_OUTPUT_PATH="static/img/avatar.png" | |
FAVICON_OUTPUT_PATH="static/favicon.ico" |
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
limit was a number of 10. | |
arr had limit number. | |
The looking-glass hatta () | |
opened | |
The looking-glass initialise () | |
opened | |
i was a number and i became 0. | |
eventually (i == limit) because | |
perhaps (i == 0 || i == 1) so |
NewerOlder