Skip to content

Instantly share code, notes, and snippets.

<svg style="display:none;">
<symbol id="test">
<rect x="10" y="10" width="100" height="100" />
<rect x="100" y="10" width="100" height="100" fill="currentColor" />
</symbol>
</svg>
<svg class="icon icon--BlueBlack"><use xlink:href="#test" />
<use class="icon icon--BlueGreen" xlink:href="#test" x='100' y='50'/></svg>
<!--<svg class="icon icon--BlueGreen"><use xlink:href="#test" /></svg>-->
<template name="SignIn">
<form action="/signin" id="signInForm" method="post">
<input id="signInEmail" type="text" name="email" placeholder="Email Address">
<input id="signInPassword" type="password" name="password" placeholder="Password">
<input class="btn-submit" type="submit" value="Sign In">
</form>
<!-- end #sign-in-form -->
</template>
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
//configurable variables
boolean
exportMode = true; //set to true when exporting, false when designing
String
folderPrefix = "b";
int
fps = 24,
outputScale = 2, //set to 2 or 4 when exporting, 1 when designing
windowSize = 480 * outputScale,
@mjgil
mjgil / svm.py
Created May 14, 2014 00:08 — forked from mblondel/svm.py
# http://www.mblondel.org/journal/2010/09/19/support-vector-machines-in-python/
# Mathieu Blondel, September 2010
# License: BSD 3 clause
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
@mjgil
mjgil / _.md
Created October 13, 2013 02:03
worms
@mjgil
mjgil / _.md
Created September 24, 2013 05:42
people on rings
@mjgil
mjgil / _.md
Created September 24, 2013 05:21
spinner animation
@mjgil
mjgil / _.md
Created September 24, 2013 04:40
sin waves
# View list of connections and their states
netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c
# List all connections and timers
ss -rota | less