View index.js
const Box = x => (
{
map: f => Box(f(x)),
fold: f => f(x)
}
);
const splitEvery = (list, n) => {
const result = [];
let idx = 0;
View README.md

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vsp **/*<partial file name><Tab>
View helpers.js
;(function(context) {
'use strict';
function $( selector, scope ) {
return $.qsa( selector, scope, true );
}
$['qsa'] = function( selector, scope, first ) {
var e = ( scope || document).querySelectorAll( selector );
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
View app.js
localStorage.test = '';
var stores = new Stores('test');
var datas = [
{ name: 'Eric' },
{ name: 'Jean' },
{ name: 'Pablo' },
{ name: 'Palmer' },
{ name: 'Pepo' }
View locadora
INSERT INTO Atores (idAtor, NomeReal, NomeArtistico, DataNascimento) VALUES (1,'Ian Murray McKellen','Ian McKellen', '1939-05-25');
INSERT INTO Atores (idAtor, NomeReal, NomeArtistico, DataNascimento) VALUES (2,'John "Johnny" Christopher Depp II','Johnny Depp', '1963-06-09');
INSERT INTO Atores (idAtor, NomeReal, NomeArtistico, DataNascimento) VALUES (3,'Uma Karuna Thurman','Uma Thurman', '1970-04-29');
INSERT INTO Atores (idAtor, NomeReal, NomeArtistico, DataNascimento) VALUES (4,'Philip Anthony Hopkins','Anthony Hopkins', '1937-12-31');
INSERT INTO Categorias (idCategoria, Nome) VALUES (1,'Action');
INSERT INTO Categorias (idCategoria, Nome) VALUES (2,'Adventure');
INSERT INTO Categorias (idCategoria, Nome) VALUES (3,'Crime');
INSERT INTO Categorias (idCategoria, Nome) VALUES (4,'Drama');
INSERT INTO Categorias (idCategoria, Nome) VALUES (5,'Fantasy');
View Collatz
public class Main {
public static void main ( String[] args ) {
int million = 1000000;
int number = 0;
int gt = 0;
int x = 0;
while( --million > 0 ) {
x = collatz( million );
View mongo-commands
// remove item from array
db.books.update({ '_id': ObjectId("555a412de01a9d4064ed5102")},{ $pull: { "lines": true }}, false, true);