WebeWizard / cheatsheet

Server for creating cheatsheets from terminal and sending them to web clients.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

####Installing and running the server

Requires Node Install global dependencies

  • npm install -g coffee-script
  • npm install -g nodemon (restarts the server on file change)

Then install project dependencies

  • npm install

Start the server with npm start or coffee app.coffee

####Example plugin for Oh-My-Zsh (Cntrl+K sends buffer to local server) ~/.oh-my-zsh/custom/plugins/cheatsheet/cheatsheet.plugin.zsh

#!/bin/zsh

function sendBuffer {
  curl  "http://localhost:4321/$HOST" --data-urlencode "buffer=$BUFFER" > /dev/null 2>&1
}
zle -N sendBuffer
bindkey '^K' 'sendBuffer'

About

Server for creating cheatsheets from terminal and sending them to web clients.


Languages

Language:CoffeeScript 94.1%Language:CSS 5.9%