This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configureDragDrop(registerType) { | |
var imageThreshold = Math.max(120, window.innerHeight / 4), | |
sectionThreshold = Math.max(140, window.innerHeight / 4), | |
currentDY = 0, | |
frame; | |
function makeScrollingHandler(threshold) { | |
function getScrollDY(clientY) { | |
var speed; | |
if (clientY < threshold) { |
(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.
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
As configured in my dotfiles.
start new:
tmux
start new with session name: