Skip to content

Instantly share code, notes, and snippets.

@kgolinski
kgolinski / nano_js_syntax_highlighting.md
Created March 31, 2017 13:22 — forked from leommoore/nano_js_syntax_highlighting.md
nano javascript syntax highlighting

#nano javascript syntax highlighting

The existing syntax highlighting is located in /usr/share/nano/

To add a new language

sudo nano /usr/share/nano/javascript.nanorc

Put the following in the contents:

@kgolinski
kgolinski / ofApp.cpp
Last active August 29, 2015 14:13 — forked from izmhr/ofApp.cpp
FPS in window title (openframeworks)
void ofApp::update() {
std::stringstream strm;
strm << "FPS: " << round(ofGetFrameRate());
ofSetWindowTitle(strm.str());
}

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt