A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
# -*- coding: utf8 -*- | |
from kivy.app import App | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.graphics import Line | |
from kivy.uix.label import Label | |
from kivy.core.window import Window | |
from kivy.clock import Clock | |
import serial |
""" | |
This is a batched LSTM forward and backward pass | |
""" | |
import numpy as np | |
import code | |
class LSTM: | |
@staticmethod | |
def init(input_size, hidden_size, fancy_forget_bias_init = 3): |
@echo off | |
if "%1"=="" ( | |
echo usage example: join.bat video1.mov video2.mov video3.mov | |
echo this will create joined.mp4 in the same directory | |
exit /B 1 | |
) | |
ffmpeg -version >nul 2>&1 || ( | |
echo ffmpeg missing, install from http://ffmpeg.zeranoe.com/builds/ |
# (C) Kyle Kastner, June 2014 | |
# License: BSD 3 clause | |
import scipy.stats as st | |
import numpy as np | |
class gmmhmm: | |
#This class converted with modifications from https://code.google.com/p/hmm-speech-recognition/source/browse/Word.m | |
def __init__(self, n_states): | |
self.n_states = n_states |
# (C) Kyle Kastner, June 2014 | |
# License: BSD 3 clause | |
import numpy as np | |
class dhmm: | |
def __init__(self, n_states, initial_prob=None, | |
n_iter=100, random_seed=1999): | |
# Initial state probabilities p(s_0)=pi[s_0]. |
#NoEnv | |
#Warn All | |
#Warn LocalSameAsGlobal, Off | |
#Persistent | |
/* | |
Speech Recognition | |
================== | |
A class providing access to Microsoft's SAPI. Requires the SAPI SDK. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html) | |
# (C) 2004, E.W. Felten | |
# license: http://creativecommons.org/licenses/by-nc-sa/2.0 | |
# Annotated by Kochin Chang, Jan. 2005 | |
# Usage: | |
# Server - python tinyp2p.py password server hostname portnum [otherurl] |
class Voice { | |
int id; // id of the finger on the leapmotion | |
OscRecv in; // inbound communication | |
ADSR env => Pan2 pan => dac; // setup an ADSR envelope | |
Osc @ osc; // reference to the current oscillator | |
float x; | |
float y; | |
float z; | |
0 => int state; |