Inspiration: http://creativecan.com/wp-content/uploads/2013/04/flat-blog-ui-kit-free-psd_thumb.jpg
A Pen by Josh Adamous on CodePen.
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var del = require('del'); // rm -rf | |
var browser = require('browser-sync').create(); | |
var port = process.env.SERVER_PORT || 3000; | |
gulp.task('clean', function() { |
// first day of the month | |
var firstDayThisMonth = moment(firstDayThisMonth).startOf('month').toDate(); | |
Go back and forth using the subtract() and add() with the endOf() and startOf(): | |
// last day of previous month | |
var yesterMonthLastDay = moment(yesterMonthLastDay).subtract(1,'months').endOf('month').toDate(); |
// Register listeners | |
window.addEventListener("offline", function(){ | |
$('#globalDiv').hide(); | |
$("#message").html('WARNING: Internet connection has been lost.').show(); | |
}); | |
window.addEventListener("online", function(){ | |
$("#message").empty().hide(); | |
$('#globalDiv').show(); | |
}); |
<script> | |
(function() { | |
var form = document.getElementById('form_837299'); | |
form.addEventListener('submit', function(event) { | |
// Prevent normal form submit | |
event.preventDefault(); | |
}); |
#!/bin/bash | |
# backup using https://github.com/deajan/osync | |
# Usage: | |
# ./backup-script nameOfFolder | |
# e.g | |
# ~$ ./backup-script Folder SecondFolder | |
echo "Starting backup" | |
for i |
echo '[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=syslog.target network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
[Install] |
{% load pages_tags i18n mezzanine_tags %} | |
{% if page_branch_in_menu %} | |
{% if branch_level == 0 %} | |
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a> | |
<ul class="right hide-on-med-and-down"> | |
<li> <a class="modal-trigger" href="#searchbox"><i class="material-icons">search</i></a></li> | |
{% if user.is_authenticated %} | |
<li> <a href="{% url 'add_project' %}"><i class="material-icons">add</i></a></li> | |
{% endif %} |
Forked from Katie Harron's Pen Simple ToDo app in Angularjs that saves to localstorage.
A Pen by Chris von Csefalvay on CodePen.
sudo ip -6 route del default | |
net.ipv6.conf.default.accept_ra_defrtr = 0 |