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
// Remix of Queen's "We will rock you" for the patatap tracker | |
// see: https://gist.github.com/eudes/d30365efa5e712cded7377945a690350 | |
// - Go to http://patatap.com/ | |
// - open the developer console (note: F12 is disabled!, open with inspect) | |
// - execute this snippet | |
// - change 'seq' to change the note sequence. Keys must be uppercase | |
// - you can send 1 function instead of a note to control other stuff in the page | |
function keypress(char) { |
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
// - Go to http://patatap.com/ | |
// - open the developer console (note: F12 is disabled!, open with inspect) | |
// - execute this snippet | |
// - change 'seq' to change the note sequence. Keys must be uppercase | |
// - you can send 1 function instead of a note to control other stuff in the page | |
function keypress(char) { | |
$.event.trigger({type: 'keydown', which: char.charCodeAt(0)}) | |
} |
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(){ | |
function parseTree(elem, links){ | |
console.log('parseTree', elem); | |
// The logic here is: | |
// trigger the async load of the subsection | |
// when that's done (DOMSubtreeModified) get the node's link | |
// and then open the node's children, calling parseTree on the children | |
// when all the children are done, resolve parseTreePromise (Promise.all(childrenNodePromises)) |
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-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<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-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> |
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
####################################################### | |
### Calomel.org /etc/nginx.conf BEGIN | |
####################################################### | |
worker_processes 3; | |
#worker_rlimit_nofile 1024; | |
events { | |
worker_connections 64; | |
#accept_mutex_delay 50ms; |