Skip to content

Instantly share code, notes, and snippets.

// 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) {
@eudes
eudes / patatap_tracker.js
Last active July 14, 2020 21:51
A simple music tracker for patatap
// - 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)})
}
(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))
@eudes
eudes / designer.html
Created June 16, 2015 23:29
designer
<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;
@eudes
eudes / designer.html
Last active August 29, 2015 14:23
designer
<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">
@eudes
eudes / nginx.conf
Created February 1, 2013 21:18
Calomel.org /etc/nginx.conf Nginx reverse proxy to a few back end web servers
#######################################################
### Calomel.org /etc/nginx.conf BEGIN
#######################################################
worker_processes 3;
#worker_rlimit_nofile 1024;
events {
worker_connections 64;
#accept_mutex_delay 50ms;