npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
function toInteger(n) { | |
n = Number(n); | |
return n < 0 ? Math.ceil(n) : Math.floor(n); | |
} |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
clean = require('gulp-clean'), |
var resizeMethod = function(){ | |
if (document.body.clientWidth < 768) { | |
console.log('mobile'); | |
} | |
if (document.body.clientWidth > 768) { | |
console.log('desktop'); | |
} | |
}; | |
//Attach event for resizing |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
#!/bin/bash | |
############################################## | |
# modified version of original http://media-glass.es/ghost-sitemaps/ | |
# for ghost.centminmod.com | |
# http://ghost.centminmod.com/ghost-sitemap-generator/ | |
############################################## | |
url="ghost.centminmod.com" | |
webroot='/home/nginx/domains/ghost.centminmod.com/public' | |
path="${webroot}/sitemap.xml" | |
user='nginx' # web server user |
# | |
# Varnish VCL file for Ghost blogging platform. | |
# http://ghost.org/ | |
# | |
# Written for Ghost v0.3.0. | |
# | |
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2 | |
# minutes, and everything below /ghost/ is pass()-ed so the user sessions | |
# work. | |
# |
#!/bin/bash | |
############################################## | |
# modified version of original http://media-glass.es/ghost-sitemaps/ | |
# for ghost.centminmod.com | |
# http://ghost.centminmod.com/ghost-sitemap-generator/ | |
############################################## | |
url="www.CHANGE_THIS.com" | |
webroot='/VAR/CHANGE_THIS' | |
path="${webroot}/sitemap.xml" | |
user='nginx' # web server user |
npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
var last = function(fn, l) { | |
return function() { | |
var args = Array.prototype.slice.call(arguments); | |
args.push(l); | |
return l = fn.apply(null, args); | |
}; | |
}; |