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 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
<!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= |
This file has been truncated, but you can view the full file.
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
{"status":"ok","count":1249,"count_total":1249,"pages":1,"posts":[{"id":14989,"type":"map","slug":"the-avalon","url":"http:\/\/emeraldstreet.lab.shortlistmedia.co.uk\/map\/the-avalon","status":"publish","title":"The Avalon","title_plain":"The Avalon","content":"<p class=\"p1\"><span class=\"s1\">The huge dining room at this friendly gastropub is bested by the equally huge back terrace, with its separate spots for drinking, dining and letting the little ones run free \u2013 visit soon before summertime disappears fully. A popular place with a pleasant, suburban feel (read: big portions, families, no central London rushing), Sunday roasts give way to midweek burgers and pints. The starters shine: smoked trout rillettes with dill deftness; blackened red mullet with a generous tapenade-meets-gazpacho dressing. Big flavour hits and a good, inexpensive wine list make this perfect for large groups or a casual couples\u2019 night out.<\/span><\/p>\n","excerpt":"<p>The huge dining room at this friendly gastropub is b |