Skip to content

Instantly share code, notes, and snippets.

@novi
novi / gist:1805373
Created February 12, 2012 00:43
Node.js 開発環境 基礎

Node.js 開発環境 基礎

Node.jsのインストール

OS X ならHomebrewまたはMacportsで。

[~] $ brew install node
[~] # port install node

nodeコマンドでnodeのインタプリタを起動。

@hotchpotch
hotchpotch / git-ssh-create
Created February 7, 2011 13:34
git repos create over ssh
#!/usr/bin/env ruby
confbase = 'git-ssh-create'
init_command = 'git init --bare --shared=true'
server = `git config --global #{confbase}.server`.chomp
if server.empty?
warn "Please set git config server."
warn " git config --global #{confbase}.server '[username@]yourserver.example.com'"
exit 1
(let ((default-directory (expand-file-name "~/Dropbox/home/.emacs.d")))
(add-to-list 'load-path default-directory)
(load (expand-file-name "~/Dropbox/home/.emacs.d/subdirs.el") t t t))
(if (file-exists-p (locate-library "init"))
(load (locate-library "init") nil t nil))