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
#!/usr/bin/env node | |
var crypto = require('crypto') | |
var path = require('path') | |
var fs = require('fs') | |
var Promise = require('bluebird') | |
Promise.promisifyAll(fs) | |
function hash(input, algorithm, encoding) { | |
return crypto |
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
javascript:var $textnode = $(getSelection().baseNode).closest('.output');if ($textnode.length) {$textnode.css({width:'100vw',height:'100vh',position: 'absolute',top: 0,left: 0,background: 'white'}).find('pre').css({height: '100%', 'box-shadow':'none', margin:0});$(window).scrollTop(0);$textnode.detach();$(document.body).css({width:'100vw',height:'100vh',overflow:'hidden'}).empty().append($textnode)} else {alert('select some text in an output log and then click the bookmarklet again')} |
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
merge = require 'xtend' | |
Promise = require 'bluebird' | |
request = Promise.promisify require 'request' | |
fs = require 'fs' | |
Promise.promisifyAll(fs) | |
servicesEndpointUrl = process.argv[2] or 'http://example.com/api' | |
contentType = process.argv[3] or 'node' | |
idType = process.argv[4] or 'nid' |
NewerOlder