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
task 'kkprint', 'print jobs', (opts, cb = noop) -> | |
return if config.env is 'production' | |
queue = require './lib/services/queue' | |
queue.fetch 'job', (err, jobs) -> | |
jobs.each (job) -> logger.info "#{moment(job.get 'created').format('MMM Do hh:mm');} - job:#{job.id} - [#{job.get 'status'}][#{job.get 'task'}]", job.get('data') | |
queue._store.client.end() | |
task 'kkclean', 'flush kinetik jobs', (opts, cb = noop) -> | |
return if config.env is 'production' | |
queue = require './lib/services/queue' |
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
# global environment variable | |
ENV = NODE_ENV=production | |
# log files | |
OUT_FILE = $(LOG_DIR)/forever-$(@)-out.log | |
LOG_FILE = $(LOG_DIR)/forever-$(@)-log.log | |
ERR_FILE = $(LOG_DIR)/forever-$(@)-err.log | |
# other forever constants |
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
# global environment variable | |
ENV = NODE_ENV=production | |
# log files | |
OUT_FILE = $(LOG_DIR)/forever-$(@)-out.log | |
LOG_FILE = $(LOG_DIR)/forever-$(@)-log.log | |
ERR_FILE = $(LOG_DIR)/forever-$(@)-err.log | |
# other forever constants | |
MIN_UP_TIME = 5000 |
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
/** | |
* Switch | |
*/ | |
body { | |
font-family: "Helvetica Neue",sans-serif; | |
} | |
.switch { | |
width: 74px ; | |
height: 35px; |
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
/** | |
* Switch | |
*/ | |
body { | |
font-family: "Helvetica Neue",sans-serif; | |
} | |
.switch { | |
width: 74px ; | |
height: 35px; |
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
.wrap { | |
width: 400px; height: 200px; | |
border: 1px solid black; | |
} | |
div { | |
display: box; | |
box-flex: 1; | |
} |
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
<input type="datetime" /> | |
<input type="tel" /> |
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
button { | |
font-size: 13px; | |
line-height: 36px; | |
font-family: sans-serif; | |
font-weight: bold; | |
color: #fff; | |
padding: 0 15px; | |
border: solid 1px; | |
border-color: #2978B0 #266FA5 #1C557D; | |
border-radius: 3px; |
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
body { | |
margin: 0; | |
padding: 0; | |
border: 1px solid black; | |
height: 600px; | |
font: 13px/1.25 "Helvetica Neue", sans-serif | |
width: 100%; | |
overflow: hidden; | |
} |
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
body { | |
margin: 0; | |
padding: 0; | |
border: 1px solid black; | |
height: 600px; | |
font: 13px/1.25 "Helvetica Neue", sans-serif | |
width: 100%; | |
overflow: hidden; | |
} |