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
{ | |
file: { | |
url: "http://someimage.jpg", | |
title: "Some Image" | |
} | |
} |
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
{ | |
file: { | |
url: "http://someimage.jpg", | |
title: "Some Image" | |
} | |
} |
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
'use strict' | |
reviewProto = { | |
getTitle: -> | |
@fields.title if @fields and @fields.title | |
getAlias: -> | |
@fields.alias if @fields and @fields.alias | |
getSuperLabel: -> | |
@fields.category if @fields and @fields.category | |
getShortDescription: -> |
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
getResponse = (method, type, params) => | |
@promises ||= {} | |
promiseKey = (method + type + JSON.stringify params).replace(/[\{\}",:\-\._\[\] ]/g, '') | |
return @promises[promiseKey] if @promises[promiseKey] | |
console.log promiseKey | |
deferred = $q.defer() | |
params ||= {} | |
params.access_token = contentfulConfig.access_token |
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
'use strict' | |
headConfig = [ | |
{ | |
name: 'title' | |
selector: 'title' | |
template: '<title></title>' | |
html: true | |
} | |
{ |
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
#!/bin/sh | |
# | |
# Time a command with a timeout | |
# | |
# Author: Stephen Roberts <stephenroberts@gmail.com> | |
# Version: 1 | |
# | |
# Usage: twto [OPTIONS] TIMEOUT COMMAND | |
# |
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
############################################################################## | |
# Logs messages with a configurable logging level and format, accepting input | |
# from either stdin (such as a pipe) or as arguments | |
# | |
# Author: Stephen Roberts <stephenroberts@gmail.com> | |
# | |
# Globals: | |
# LOGLEVEL - arbitrary integer for desired log output level (default: 0) | |
# | |
# Arguments: |
OlderNewer