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
<!DOCTYPE html> | |
<html data-view-uid="0"> | |
<head> | |
<base href='http://www.bloomberg.com/'> | |
<meta charset="utf-8"> | |
<title>European Stocks Join Global Relief Rally - Bloomberg | |
Business</title> | |
<meta content="IE=11,10,9" http-equiv="X-UA-Compatible"> |
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
app.use(function(req, res, next) { | |
if(req.url.indexOf("js/") === 0) { | |
res.setHeader("Cache-Control", "public, max-age=345600"); | |
} | |
if(req.url.indexOf("js/") === 0) { | |
res.setHeader("Cache-Control", "public, max-age=172800"); | |
} | |
return next(); | |
}); | |
app.use(express.static(path.join(__dirname, 'www'))); |
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
for file in *.gif | |
do | |
#convert -strip $($file)[0] $(basename $file)-thumb.jpg | |
convert -strip "${file%.*}.gif[0]" "${file%.*}.jpg" | |
done |
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
for file in *.gif | |
do | |
convert -strip "${file%.*}.gif[0]" "${file%.*}.jpg" | |
done |
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
#!/usr/bin/env node | |
var fs = require("fs"), | |
util = require("util"); | |
var mime = require("mime"); | |
function base64Image(src) { | |
var data = fs.readFileSync(src).toString("base64"); | |
return util.format("data:%s;base64,%s", mime.lookup(src), data); |
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
var browserify = require('browserify'); | |
var hbsfy = require('hbsfy'); | |
var gulp = require('gulp'); | |
var handleErrors = require('../util/handleErrors'); | |
var source = require('vinyl-source-stream'); | |
var livereload = require('gulp-livereload'); | |
gulp.task('browserify', function(){ | |
return browserify({ | |
transform: [hbsfy], |
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
// Mobiles | |
smallMobileOnly = "(max-width:320px)" | |
smallMobilesAndUp = "(min-width:320px)" | |
// Tablets | |
smallTabletsAndUp = "(min-width:533px)" | |
ipadAndUp = "(min-width:768px)" | |
ipadOnly = "(min-width:768px) and (max-width:768px)" | |
largeTabletsAndUp= "(min-width:800px)" |
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
{ | |
"brand": "Vanity Fair", | |
"config": { | |
"env": "production", | |
"ecomFailSafeURL": "https:\/\/w1.buysub.com\/loc\/VYF\/ATGFailsafe", | |
"ecomFailSafeURLMobile": "https:\/\/w1.buysub.com\/loc\/VYF\/ATGFailsafeMobile", | |
"siteConfig": { | |
"env": "production", | |
"code": "VYF", | |
"title": "", |
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
var doorCodes = []; | |
for (var _i=0; _i< 100; _i++) { | |
if (_i%2 == 0 && _i/2 > 9) { | |
doorCodes.push(_i + "" + _i/2); | |
} | |
} | |
for (var _j=0; _j < 100; _j++) { | |
if (_j*2 < 100 && _j > 9) { |
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
<!DOCTYPE html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="initial-scale=1.0, maximum-scale=2.0" name="viewport"> | |
<meta content="Clock Limited - www.clock.co.uk" name="creator"> | |
<meta content="B6CB8B64033162E922D724D46307B297" name="msvalidate.01"> | |
<meta content= | |
"ShortList - Films, Style, Gaming, Sport, TV, Design, Music, Food" name= |
OlderNewer