Skip to content

Instantly share code, notes, and snippets.

@canozmen
canozmen / 0_reuse_code.js
Created November 27, 2013 12:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@canozmen
canozmen / unbaby-me-keywords.txt
Created August 3, 2012 14:39
unbaby.me Turkish keywords
oglum, oğlum, oğul, ogul, kızım, kizim, kız, kiz, ufaklık, ufaklik, kerata
@canozmen
canozmen / macosxapp.txt
Created May 11, 2012 13:44
Mac OS X apps to reinstall after wipe
- Firefox
- Chrome Canary
- nvALT
- SublimeText 2
- MacFace
- iCleanMemory
- Dropbox
- Sparrow
- Adium
- Enqueue
@canozmen
canozmen / gist:2549700
Created April 29, 2012 11:42 — forked from al3xandru/gist:1128606
nvALT Bookmarklet
javascript:(function({
var INSTAPAPER=true,w=window,d=document,pageSelectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pageTitle=d.title,pageUri=w.location.href,tmplt="";
tmplt="\n\nlink: ["+pageTitle+"]("+pageUri+")";
if(pageSelectedTxt!=="") {
pageSelectedTxt=">%20"+pageSelectedTxt;
pageSelectedTxt=pageSelectedTxt.replace(/(\r\n|\n+|\r)/gm,"\n");
pageSelectedTxt=pageSelectedTxt.replace(/\n/g,"\n>%20\n>%20");
w.location.href="nvalt://make/?txt="+encodeURIComponent(pageSelectedTxt+tmplt)+"&title="+encodeURIComponent(pageTitle);
}
else {
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use