This file contains 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
let timer; | |
const delay = (func, ms = 500) => { | |
clearTimeout(timer); | |
timer = setTimeout(func, ms); | |
} | |
export default delay; |
This file contains 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/bash | |
usr_path=/your/home/dir/ | |
ws_path=$usr_path'your/workspace/dir' | |
project=$ws_path'your/project/dir' | |
guake -e "cd '$ws_path';pwd" | |
guake -r workspace | |
guake -n 1 | |
guake -r cs |
This file contains 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
Dir[File.expand_path(File.join(File.dirname(__FILE__),dir,'**','*.rb'))].each {|f| require f} |
This file contains 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
server { | |
listen 3000; | |
server_name host; | |
root /path/to/project/..; | |
#passenger_enabled on; | |
#rails_env development; | |
location ~* \.(js|css|gif|png|bmp|jpeg|jpg|swf)$ { | |
access_log off; | |
log_not_found off; |
NewerOlder