(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.
| (function() { | |
| // Do not use this library. This is just a fun example to prove a | |
| // point. | |
| var Bloop = window.Bloop = {}; | |
| var mountId = 0; | |
| function newMountId() { | |
| return mountId++; | |
| } |
(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.
| gulp = require 'gulp' | |
| coffee = require 'gulp-coffee' | |
| util = require 'gulp-util' | |
| less = require 'gulp-less' | |
| watch = require 'gulp-watch' | |
| livereload = require 'gulp-livereload' | |
| watchify = require 'watchify' | |
| browserify = require 'browserify' | |
| coffeeify = require 'coffeeify' |
Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
Mostly about MVC (or derivatives, MVP / MVVM).
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| /* Critical CSS Finder w/media query support and output to console | |
| by Katie Harron - https://github.com/pibby - https://pibby.com | |
| forked from james-Ballyhoo (https://gist.github.com/james-Ballyhoo/04761ed2a5778c505527) who forked from PaulKinlan (https://gist.github.com/PaulKinlan/6284142) | |
| I don't know why this isn't keeping my 2 space indents :( | |
| */ | |
| (function() { | |
| function findCriticalCSS(w, d) { | |
| // Pseudo classes formatting | |
| var formatPseudo = /([^\s,\:\(])\:\:?(?!not)[a-zA-Z\-]{1,}(?:\(.*?\))?/g; |
| var ListenWithMe = (function() { | |
| // Add your own config here | |
| var LASTFM_API_KEY = ""; | |
| var LASTFM_USERNAME = ""; | |
| // Element to inject the widget into | |
| var $playerWrapper = document.getElementById('spotify-player-wrapper'); | |
| return { | |
| init: init | |
| } |
| #!/usr/bin/env bash | |
| DIR=$(dirname "$(readlink -f "$0")") | |
| FILES="$DIR"/files/ | |
| mkdir -p "$FILES"/ | |
| if [ ! -f "$FILES"/sandbox-ca.crt ]; then | |
| echo '########################################' |
| /** | |
| * I figured out you can fit a Shelly 1 inside the case of many outdoor motion sensors. | |
| * Coupled with that fact that recently, Shelly added a feature to de-couple the switch from the relay | |
| * so they act independently, makes this a great combo! Simply wire the output of the PIR motion sensor | |
| * (the wire that normally goes to your outdoor light) to the switch input of the Shelly and wire | |
| * the lightbulb to the L output of the Shelly. Then, in the Shelly app or directly via the devices webpage, | |
| * select the button type as 'Detached Switch' and use the code below to make it work normally. | |
| * Don't forget to adjust the daylight sensitivity to full daylight if you want the motion detection to work 24/7. | |
| */ |
3.5 fps, Paperwhite 3
@adtac_
mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread
I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging