Quick reference:
screen /dev/tty.usbmodem1d113 115200 (tty)
ssh [email protected] (ethernet)
ssh [email protected] (usb0)
var _missing= function(data){ return React.DOM.pre(null, "Route not found: "+ data.route) }, | |
_router= null, | |
_started= false, | |
_nextId= 1; | |
function handleRouteChange(container, component) { | |
var routeParams= Array.prototype.slice.call( arguments, 1 ) | |
React.renderComponent( | |
component({ routeParams:routeParams }, null), | |
container |
(function($){ | |
/** | |
* Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
* within the comfortable framework of the jquery ajax request, with full support for promises. | |
* | |
* Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
* of potential transports (so it gets first dibs if the request passes the conditions within to provide the | |
* ajax transport, preventing the standard transport from hogging the request), and the * indicates that | |
* potentially any request with any dataType might want to use the transports provided herein. | |
* |
'use strict'; | |
var Database = require('dbjs') | |
, serialize = require('dbjs/_setup/serialize/value') | |
, unserialize = require('dbjs/_setup/unserialize/value') | |
, DbjsEvent = require('dbjs/_setup/event') | |
, db = new Database(); | |
// 1. Save |
Quick reference:
screen /dev/tty.usbmodem1d113 115200 (tty)
ssh [email protected] (ethernet)
ssh [email protected] (usb0)
module.exports = clickEvent; | |
function clickEvent(handler, opts) { | |
opts = opts || {}; | |
return function clickHandler(ev) { | |
if (!opts.ctrl && ev.ctrlKey) { | |
return; | |
} |
Youtube -> Imgur Screenshot Helper (copy and paste into your browser console when on a video site)
var clientId = ''; // insert your imgur application client id here
var videos = document.getElementsByTagName('video'), canvas = document.createElement('canvas'), context = canvas.getContext('2d'), http = new XMLHttpRequest();
canvas.width = videos[0].videoWidth; canvas.height = videos[0].videoHeight;
context.drawImage(videos[0], 0, 0);
var data = JSON.stringify({
image: canvas.toDataURL('image/jpeg', 0.9).split(',')[1]
# update the host | |
apt-get update && apt-get upgrade -y # && apt-get dist-upgrade -y && apt-get autoremove --purge -y && apt-get autoclean -y | |
# https://www.stgraber.org/ | |
# install linux containers | |
sudo apt-get install lxc | |
# list all containers and view their current status | |
sudo lxc-ls -f |
NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.
I'd like to hear how you approach this: @valuedstandards or comment on this gist.
You have to include a boatload of link
elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':
language: node_js | |
node_js: | |
- '0.10' | |
- '0.12' |