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
| // requires momentjs and lodash | |
| // our time precision | |
| let timeUnit = 'minute' | |
| // playground timeseries event | |
| let now = moment().subtract(1, 'hour') | |
| let dates = [ | |
| {x: moment(now).subtract(3,"minutes"), y: 2}, | |
| {x: moment(now).add(10,"minutes"), y: 18}, |
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
| package robotstxt | |
| import java.io.{ByteArrayInputStream, InputStreamReader, BufferedReader} | |
| import java.nio.charset.StandardCharsets | |
| import scala.collection.mutable | |
| import scala.collection.mutable.ListBuffer | |
| object Parser extends App { |
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
| description "upstart configuration for gunicorn" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| exec /home/jamie/.virtualenvs/projectname/bin/gunicorn_django -c /home/jamie/code/projectname/gunicorn.py /home/jamie/code/projectname/settings/production.py |
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
| -module(date_util). | |
| -compile(export_all). | |
| epoch() -> | |
| now_to_seconds(now()) | |
| . | |
| epoch_hires() -> | |
| now_to_seconds_hires(now()) | |
| . |