(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
d3.sankey = function() { | |
var sankey = {}, | |
nodeWidth = 24, | |
nodePadding = 8, | |
size = [1, 1], | |
nodes = [], | |
links = []; | |
sankey.nodeWidth = function(_) { | |
if (!arguments.length) return nodeWidth; |
//https://twitter.com/aatishb/status/671905190367338496 | |
//http://www.princeton.edu/~aatishb/processing/wavemaker/ | |
//http://www.princeton.edu/~aatishb/processing/wavemaker/sketch.js | |
var x, y; | |
var t = 0; | |
var phase; | |
var signx,signy; |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { | |
if (p < 0.5) | |
return 0.5 * pow(2*p, g); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Resurrection Remix ROM | |
Source Code: http://github.com/ResurrectionRemix | |
Website: http://www.resurrectionremix.com | |
For extended changelog, track github activities | |
The Changelog | |
# Resurrection Remix Lollipop 5.1.1 - v5.5.4 |
USER=`whoami` | |
KERNEL=`uname -r` | |
OS=`hostnamectl status | awk 'NR==6{print $3,$4}'` | |
HOST=`hostnamectl status | awk 'NR==1{print $3}'` | |
ROOT_TOT=`df -h | awk 'NR==2{print $2}' | sed 's/G//g'` | |
ROOT_OCCUPIED=`df -h | awk 'NR==2{print $3}' | sed 's/G//g'` | |
PACKAGES=`pacman -Qq | wc -l` | |
CPU=`echo -e : $(cat /proc/cpuinfo | awk 'NR==5{$1=$2=$3="";print}')` | |
CONNECTION=`[[ -x /usr/bin/iwgetid ]] && echo -e $(iwgetid -r) || echo "missing iw package"` | |
RES="\033[0m" |
USER=your_username | |
PASS=your_passwd | |
COUNT=`curl -su $USER:$PASS https://mail.google.com/mail/feed/atom || echo "<fullcount>unknown number of</fullcount>"` | |
COUNT=`echo "$COUNT" | grep "<fullcount>" | sed -e s/"<fullcount>"// -e s/"<\/fullcount>"//` | |
echo $COUNT | |
if [ "$COUNT" != "0" ]; then | |
if [ "$COUNT" = "1" ];then | |
WORD="mail"; | |
else |
passwd | |
systemctl enable sshd.service | |
systemctl start sshd.service | |
parted -s /dev/sda mklabel gpt | |
parted -s /dev/sda mkpart "primary" "fat16" "50MB" "60MB" | |
parted -s /dev/sda mkpart "primary" "ext4" "1%" "99%" | |
parted -s /dev/sda set 1 bios_grub on | |
mkfs.ext4 /dev/sda2 |
// Style the find results | |
atom-text-editor::shadow .highlight.find-result .region { | |
background: rgb(163,163,0); | |
transition: background-color 0.2s, border-color 0.2s; | |
} | |
atom-text-editor::shadow .highlight.current-result .region, | |
atom-text-editor::shadow .highlight.current-result ~ .highlight.selection .region { | |
background: orange; | |
border-color: red; | |
} |
function t (evt) { | |
evt.preventDefault(); | |
evt.stopPropagation(); | |
evt.stopImmediatePropagation(); | |
... | |
} |