Skip to content

Instantly share code, notes, and snippets.

root :to => "home#landing"
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
#!/bin/sh
# ******
# This goes in /etc/init.d
# ******
# start nginx
/usr/local/bin/nginx/
sleep 10
@shiloa
shiloa / euler.clj
Created July 5, 2011 04:37
Learning basic Clojure and Scala by solving some problems from http://www.projecteuler.net
;; import all helper functions
(load-file "helpers.clj")
(ns euler)
;;
;; Problem 1
;;
(defn prob-1 []
"Find the sum of all the multiples of 3 or 5 below 1000"
$('div.none').each( function(i) {
if ( $(this).find('div.station') == null ) {
$(this).hide();
}
});
## inside project dir on local machine (tracked by git):
$ git remote add origin git://gitserver/path/to/repos/project.git
$ git push
gitserver [0: 10.14.120.222]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
## also tried with ssh
$ git remote rm origin
$ git remote add origin git://gitserver/path/to/repos/project.git
$ git push