Skip to content

Instantly share code, notes, and snippets.

" minimal vim config for working on remote machines, in containers, etc.
" apk update && apk add vim
" curl -sL https://raw.githubusercontent.com/zacanger/z/master/.vimrc ~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'sheerun/vim-polyglot'
Plug 'junegunn/vim-peekaboo'
Plug 'vim-scripts/syntaxcomplete'
@lukeschunk
lukeschunk / 1.js
Created April 13, 2016 17:44 — forked from megamaddu/1.js
Comparison
const Pricing = React.createClass({
// ...
render() {
// ...
return (
<div className="pricing" style={{ opacity: purchasing ? 0.25 : '' }}>
{purchaseError ? (
<div className="purchase-complete">
<h2 style={{ color: 'hsl(10, 50%, 50%)' }}>Oops!</h2>
<p>
@lukeschunk
lukeschunk / Tricky-JS-Chaining1.js
Last active August 5, 2016 20:09
Difficult JS Interview Question
(function () {
function Arithmetic(number) {
this.value = number;
};
Arithmetic.val = function () {
return this.value;
};