Skip to content

Instantly share code, notes, and snippets.

View edrpls's full-sized avatar
😶‍🌫️

Eder Sánchez edrpls

😶‍🌫️
  • Mexico
  • 19:18 (UTC -06:00)
View GitHub Profile
@davidmh
davidmh / nvim-term-maps.vim
Last active June 22, 2016 16:48
Mappings and basic REPL for Neovim's :term
" Term bindings
"
" Spawns
" open shell on the current window
nnoremap <c-t><c-e> :e term://$SHELL<CR>A
" open vertical shell
nnoremap <c-t><c-v> <c-w><c-v><c-w><c-l>:e term://$SHELL<CR>A
" open horizontal shell
nnoremap <c-t><c-s> <c-w><c-s><c-w><c-j>:e term://$SHELL<CR>A
"
@daviferreira
daviferreira / compiler.js
Last active April 18, 2017 21:42
Mocha compiler for es6 + react components with css require statements
'use strict';
var babel = require('babel-core');
var fs = require('fs');
// borrowed from https://github.com/babel/babel-jest/blob/master/index.js
require.extensions['.jsx'] = function (module, filename) {
var src = fs.readFileSync(filename, 'utf8');
// Allow the stage to be configured by an environment
// variable, but use Babel's default stage (2) if