Skip to content

Instantly share code, notes, and snippets.

View bookercodes's full-sized avatar

Alex Booker bookercodes

View GitHub Profile
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var models = require("./models");
var cors = require('cors');
var seed = require("./seed");
var Hall = models.Hall;
var Item = models.Item;
var Action = models.Action;
  1. Viewer types a command like !screenshot or !point.
  2. The program running on your computer takes a screenshot of your desktop and uploads it to your server.
  3. The program running on your computer posts a link to that image in the chat.
  4. User can place blue circles on the image by clicking on it.
.old-site {
}
.old-site h1 {
}
@bookercodes
bookercodes / comparison-of-popular-vim-javascript-syntax-plugins.md
Last active February 7, 2016 17:09
Comparison of Popular Vim JavaScript Syntax Plugins
@bookercodes
bookercodes / vim-cheatsheet.md
Created February 8, 2016 09:11
Vim Cheatsheet

Vim Cheatsheet

  • Search Word Under Cursor: Put the cursor on foo. Press * to search for the next occurrence.
#!/usr/bin/env node
import meow from 'meow';
import fs from 'fs-promise';
import path from 'path';
import {buildTheme} from './';
import logger from './logger';
require('babel-polyfill');

Base16 Builder is a nimble command-line tool that generates themes for your favourite programs. See it in action below

Base16 Builder is simple to use. All you have to do is supply a color _s_cheme, template, and brightness. Base!6 Builder will use this information to generate a theme and write it to stdout. Because Base16 Builder writes to stdout it is possible to "pipe" the theme anywhere. In the above screencast I pipe it to a file called theme but this could just as well have been a configuration file like .Xresources.

if has('vim_starting')
set runtimepath+=/home/booker/.config/nvim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('/home/booker/.config/nvim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'wellle/tmux-complete.vim' " Make Omnicomplete aware of adjacent tmux panes
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'jiangmiao/auto-pairs'
Enable undo history

Vim Wishlist

  • Really rich JavaScript and React snippets via NeoSnippet.
  • Automatically run eslint --fix on write
  • An error list like Visual Studio
  • Faster buffer switching (At the moment my Neomake config is causing lag...)
  • Rich fuzzy searching via FZF
  • Rich file searching via FZF
  • Relative file auto-complete
  • Key-binding to delete all buffers except current