Skip to content

Instantly share code, notes, and snippets.

View mattosborn's full-sized avatar

Matt Osborn mattosborn

View GitHub Profile
@mattosborn
mattosborn / .screenrc
Last active June 14, 2017 22:14
screen config
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
@mattosborn
mattosborn / debounce.js
Created November 12, 2015 13:40 — forked from danprince/debounce.js
Debounce
function debounce(fn, interval) {
var lastCall;
return function() {
var now = Date.now();
if(!lastCall || now - lastCall > interval) {
fn.apply(this, arguments);
lastCall = now;
}
var Web3 = require('web3');
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
console.log( web3.eth.getBlock('latest') );
@mattosborn
mattosborn / config.tsx
Created October 18, 2018 03:10
onivim config
import * as React from "react";
import * as Oni from "oni-api";
export const activate = (oni: Oni.Plugin.Api) => {
console.log("config activated");
// Input
//
// Add input bindings here:
//
@mattosborn
mattosborn / init.vim
Created October 18, 2018 03:12
vimcfg
autocmd Filetype html setlocal ts=2 sts=2 sw=2
autocmd Filetype typescript setlocal ts=2 sts=2 sw=2
autocmd Filetype tsx setlocal ts=2 sts=2 sw=2
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2
autocmd Filetype json setlocal ts=2 sts=2 sw=2
autocmd Filetype css setlocal ts=2 sts=2 sw=2
autocmd Filetype scss setlocal ts=2 sts=2 sw=2
autocmd Filetype sass setlocal ts=2 sts=2 sw=2
set relativenumber