title: Automating optimisations with Gulp date: 2015-03-18T10:06:55+00:00 permalink: /gulp/advanced-tasks excerpt: "Gulp is a powerful task runner, that when used correctly, can vastly improve your workflow." categories:
- gulp tags:
- gulp
- npm
{"lastUpload":"2017-10-19T09:23:32.280Z","extensionVersion":"v2.8.3"} |
// Take a photo on load | |
takePhoto(); | |
setInterval(() => { | |
// Take a photo every X minutes, defined in the ENV | |
takePhoto(); | |
}, 1000 * 60 * parseInt(process.env.PHOTO_INTERVAL, 10)); |
FROM resin/%%RESIN_MACHINE_NAME%%-node:slim | |
# switch on systemd init system in container | |
ENV INITSYSTEM on | |
COPY . /usr/src/app | |
WORKDIR /usr/src/app | |
# Copies the package.json first for better caching on later pushes | |
COPY package.json package.json |
title: Automating optimisations with Gulp date: 2015-03-18T10:06:55+00:00 permalink: /gulp/advanced-tasks excerpt: "Gulp is a powerful task runner, that when used correctly, can vastly improve your workflow." categories:
I hereby claim:
To claim this, I am signing this object:
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script><div id="dc-vadio-wrapper" class="dc-video-on"></div> | |
<script id="jsbin-javascript"> | |
// Define base url | |
var url = "https://www.vadio.com:443/embed.php?id=dc-vadio-wrapper&stream="; | |
// Get current hour | |
var hour = new Date().getHours; | |
// Select the appropriate stream | |
var stream; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
/** | |
* Sends statistics to the stats daemon over UDP | |
* | |
**/ | |
class StatsD { | |
/** |
#!/bin/bash | |
# Taken from http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users | |
# By yukondude | |
# System-wide crontab file and cron job directory. Change these for your system. | |
CRONTAB='/etc/crontab' | |
CRONDIR='/etc/cron.d' | |
# Single tab character. Annoyingly necessary. | |
tab=$(echo -en "\t") |