This file contains hidden or 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
| {"label":"coverage","message":"96%","schemaVersion":1,"color":"brightgreen"} |
This file contains hidden or 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
| {"label":"coverage","message":"100%","schemaVersion":1,"color":"brightgreen"} |
This file contains hidden or 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
| {"label":"coverage","message":"100%","schemaVersion":1,"color":"brightgreen"} |
This file contains hidden or 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
| {"label":"coverage","message":"99%","schemaVersion":1,"color":"brightgreen"} |
This file contains hidden or 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
| import * as _ from 'lodash' | |
| import * as objectPath from 'object-path' | |
| import * as stringify from 'json-stringify-safe' | |
| /** | |
| * Recursively replace undefined with null. | |
| */ | |
| export function undefinedToNull<T>(obj: T): T { | |
| if (obj === undefined) { | |
| return null |
This file contains hidden or 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
| curl -XGET 'http://makersearch.prod.lovecrafts.cool:9200/read-model/_search' -d ' | |
| { | |
| "query": { | |
| "filtered": { | |
| "filter": { | |
| "and": [ | |
| { | |
| "bool": { | |
| "must": { | |
| "term": { |
This file contains hidden or 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
| from __future__ import division | |
| import argparse | |
| from PIL import Image | |
| from math import log | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("start_file", help="filename of initial image") | |
| parser.add_argument( | |
| "-x", | |
| "--xpercent", |
This file contains hidden or 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 | |
| mplayer http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p |
This file contains hidden or 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
| INSERT INTO catalog_product_entity_varchar | |
| (entity_type_id, attribute_id, store_id, entity_id, `value`) | |
| SELECT | |
| 4 AS entity_type_id, | |
| 216 AS attribute_id, | |
| `existing_value`.store_id, | |
| `existing_option_id`.entity_id, | |
| `existing_value`.`value` | |
| FROM `eav_attribute_option_value` AS `existing_value` | |
| INNER JOIN catalog_product_entity_int AS `existing_option_id` |
This file contains hidden or 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
| // Throwaway Gulp script to insert dates from file-names into the front-matter | |
| // of content source files | |
| var gulp = require('gulp'), | |
| through = require('through2'); | |
| gulp.task('insert-dates', function() { | |
| return gulp.src('content/posts/**/*.md') | |
| .pipe(through.obj( | |
| function(file, enc, callback) { |
NewerOlder