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
var html = require('bel') | |
var nanomorph = require('nanomorph') | |
var cache = require('cache-element') | |
var stuff = [ | |
[{ | |
title: 1 | |
}, { | |
title: 2 | |
}, { | |
title: 3 |
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
const elType = 'div' | |
module.exports = function memoizeNode (node) { | |
var placeholder = null | |
var element = null | |
var args = null | |
return function render () { | |
const _args = arguments | |
if (!element) { |
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
module.exports = function memoizeNode(node) { | |
var element | |
var placeholder | |
var mounted = false | |
return function render() { | |
if(!element) { | |
element = node | |
mounted = true | |
return element | |
} |
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
browserify ./screens/*.js -p [ factor-bundle -o 'tee > bundle/`basename $FILE`' ] -o bundle/common.js |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>tiny tests</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
padding: 3rem; | |
} |
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
set nocompatible " be iMproved, required | |
set background=dark | |
syntax enable | |
filetype on " without this vim emits a zero exit status, later, because of :ft off | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' |
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
" keyboard shortcuts | |
inoremap jj <ESC> | |
nnoremap ; : | |
"NAVIGATION | |
nnoremap <up> <nop> | |
nnoremap <down> <nop> | |
nnoremap <left> <nop> | |
nnoremap <right> <nop> | |
inoremap <up> <nop> |
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
postcss: function() { | |
return [ | |
postcssImport({ | |
onImport: function (files) { | |
files.forEach(this.addDependency) | |
}.bind(this) | |
}), | |
customProperties(), | |
autoprefixer | |
] |
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
import React, { Component } from 'react' | |
class TextInput extends Component { | |
constructor(props) { | |
super(props) | |
} | |
get value() { | |
return this.refs.textarea.value |
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
Bundle 'airblade/vim-gitgutter' | |
Bundle 'austintaylor/vim-indentobject' | |
Bundle 'christoomey/vim-tmux-navigator' | |
Bundle 'gmarik/vundle' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'majutsushi/tagbar' | |
Bundle 'rking/ag.vim' | |
Bundle 'msanders/snipmate.vim' | |
Bundle 'Shutnik/jshint2.vim' | |
Bundle 'nathanaelkane/vim-indent-guides' |