(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.
| 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 |
| 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" |
| 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 |
(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.
| 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); |
| d3.sankey = function() { | |
| var sankey = {}, | |
| nodeWidth = 24, | |
| nodePadding = 8, | |
| size = [1, 1], | |
| nodes = [], | |
| links = []; | |
| sankey.nodeWidth = function(_) { | |
| if (!arguments.length) return nodeWidth; |
A recreation of a lovely GIF by Dave Whyte. As the Exploratorium explains, “Wave motion at the surface of water is made up of small circular motions of parcels of water.”
| // adapted from https://tonicdev.com/n3dst4/twelve-days-of-emoji | |
| // full credit to n3dst4. I just rewrote this to be browser developer tools friendly. | |
| const pressies = [ | |
| "🐦🍐🌳", | |
| "🐢🐦", | |
| "🇫🇷🐔", | |
| "📞🐦", | |
| "💛💍", | |
| "🐦🍳 ", | |
| "🐦🏊", |