This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root :to => "home#landing" | |
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ****** | |
# This goes in /etc/init.d | |
# ****** | |
# start nginx | |
/usr/local/bin/nginx/ | |
sleep 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div.none').each( function(i) { | |
if ( $(this).find('div.station') == null ) { | |
$(this).hide(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |