View this code at http://livecoding.io/5476579
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
// Note: relies on es6 for..of loop and ..., the 'spread' operator; can easily be adapted to es5 | |
function pconsole(prefix /* string */) { | |
// preserves original line number of calling function | |
// usage: | |
// const todo_console = pconsole('TODO'); | |
// todo_console.log(1, 2) outputs 'TODO 1 2' and similar for debug, info, warn, etc... methods | |
const prefix_console = {}; | |
const log_methods = ['debug', 'dir', 'error', 'exception', 'info', 'log', 'table', 'trace', 'warn']; | |
for (let method of log_methods) { |
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
{ | |
"token": "7fe54ac8-8098-4a47-a72f-ade0276003d8", | |
"entity_id": "18", | |
"created_at": "2015-04-06 11:49:46", | |
"quote_id": "135", | |
"delivery_time_window": { | |
"ddate": "2015-04-27", | |
"dtime": "17:30-22:00" | |
}, | |
"customer_id": "3", |
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 lang="en"> | |
<head> | |
<title>Proper use of reviewCount</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
</head> | |
<body> | |
<div itemscope itemtype="http://schema.org/Article"> | |
<h1 itemprop="name">Proper use of reviewCount</h1> | |
<div itemprop="description">Don't use reviewCount when you should use ratingCount.</div> |
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 lang="en"> | |
<head> | |
<title>Proper use of reviewCount</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
</head> | |
<body> | |
<div itemscope itemtype="http://schema.org/Article"> | |
<h1 itemprop="name">Proper use of reviewCount</h1> | |
<div itemprop="description">Don't use reviewCount when you should use ratingCount.</div> |
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
du -aBM --max-depth=1 2> /dev/null | sort -rn |
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
<html> | |
<head> | |
<style> | |
img { | |
display:none; | |
} | |
</style> | |
<script src="canvasUtil.js"></script> | |
</head> | |
<body> |