// Processing code by Etienne JACOB | |
// motion blur template by beesandbombs | |
// result of this is more like tumblr version than twitter version (https://necessary-disorder.tumblr.com/image/190425356073) | |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} |
aws lambda update-fnction-configuration\ --function-name "TeST" \ --description $(date -u + "%Y-%m-%dT%H:%M:%M:%SZ") |
- redom (1.6k) - Tiny turboboosted JavaScript library for creating user interfaces
- frzr (1.6k) - Turboboosted 2 KB view library for browser & node.js
- killroy (1.9k) - A tiny ui library inspired by React
- real-dom (0.7k) - A ~1K non-virtual DOM non-framework framework for simple apps
- domchanger (1.8k) - Dombuilder that applies diffs only to the real dom
- vomit (3.2k) - A high order function using virtual dom to build user interfaces
- bel (3.5k) - A simple library for composable DOM elements using tagged template strings
- yo-yo (5.4k) - A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals (build on bel)
- [choo](https://github.com/yos
location = /analytics.js { | |
proxy_hide_header Alt-Svc; | |
resolver 8.8.8.8 ipv6=off; | |
proxy_pass https://www.google-analytics.com/analytics.js; | |
break; | |
} | |
location = /analytics { | |
access_by_lua_block { | |
ngx.req.read_body() | |
local body = ngx.req.get_body_data() |
04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.
This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.
[Laughter]
> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hacking Javascript2img.com</title> | |
<style type="text/css"> | |
body { font-family:Arial; } | |
textarea { width:100%; height:300px; } | |
button { padding:20px; width:150px; height:50px; margin-top:20px; margin-bottom:20px; } | |
</style> | |
</head> |
<label>
elements are notoriously hard to select with CSS in any non-trivial mark-up structure, when the state of their control is to be taken into account. Consider these frequent cases, where it is not possible to reach the label
element with CSS selectors, when the corresponding input
state is relevant:
1. <label><input> Input inside label</label>
2. <tr>
<td><input></td>
Good ol' tables
// See http://www.bluejava.com/4NS/Speed-up-your-Websites-with-a-Faster-setTimeout-using-soon | |
// This is a very fast "asynchronous" flow control - i.e. it yields the thread and executes later, | |
// but not much later. It is far faster and lighter than using setTimeout(fn,0) for yielding threads. | |
// Its also faster than other setImmediate shims, as it uses Mutation Observer and "mainlines" successive | |
// calls internally. | |
// WARNING: This does not yield to the browser UI loop, so by using this repeatedly | |
// you can starve the UI and be unresponsive to the user. | |
// This is an even FASTER version of https://gist.github.com/bluejava/9b9542d1da2a164d0456 that gives up | |
// passing context and arguments, in exchange for a 25x speed increase. (Use anon function to pass context/args) | |
var soon = (function() { |
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).