Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
#!/bin/bash | |
# Functions ============================================== | |
# return 1 if global command line program installed, else 0 | |
# example | |
# echo "node: $(program_is_installed node)" | |
function program_is_installed { | |
# set to 1 initially | |
local return_=1 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
(function (con) { | |
'use strict'; | |
var prop, method; | |
var empty = {}; | |
var dummy = function () { }; | |
var properties = 'memory'.split(','); | |
var methods = ('assert,count,debug,dir,dirxml,error,exception,group,' + | |
'groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,' + | |
'time,timeEnd,trace,warn').split(','); | |
while (prop = properties.pop()) con[prop] = con[prop] || empty; |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
To run this, you can try:
curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash
I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.
Alternatively,
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
var through = require("through2"); | |
var exec = require("child_process").exec; | |
// through2 docs: https://github.com/rvagg/through2 | |
module.exports = function (options) { | |
// Not necessary to accept options but nice in case you add them later | |
options = options || {}; | |
<html> | |
<head> | |
<script> | |
function generateKey(alg, scope) { | |
return new Promise(function(resolve) { | |
var genkey = crypto.subtle.generateKey(alg, true, scope) | |
genkey.then(function (pair) { | |
resolve(pair) | |
}) | |
}) |