Skip to content

Instantly share code, notes, and snippets.

@hagb4rd
hagb4rd / freenode.scraplogs.amd.js
Last active February 11, 2024 22:09
irc.freenode.net log scrapper AMD moule -- http://logs.nodejs.org -- create bookmarklet to load require.js in browser http://marklet.herokuapp.com
define(function(require,exports,module){
// scrap irc.freenode.net logs from http://logs.nodejs.org/node.js/latest
// create bookmarklet to quickly load moment/require.js here: http://marklet.herokuapp.com
// --------
// example: var dateList=[...dateFrom('2018-04-01')]; Promise.all(dateList.map(dateString=>scraplog(dateString).catch(err=>(console.log(err),[])))
// --------
@hagb4rd
hagb4rd / m0ther-estoteric1.html
Created May 11, 2023 02:34
jslave m0ther irc bot files
<html><head><link rel="stylesheet" href="resource://content-accessible/plaintext.css"><style media="screen" id="__markdown-viewer__md_css">/*
* Copyright (c) 2016 Thibaut Rousseau
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*

#Install Windows 8 to a VHD file on a USB drive! This Tutorial has been adapted from misty's method 3 from reboot.pro.

Introduction

This tutorial shows how you can create a Virtual Hard Disk (VHD) file on an external USB Hard drive and make the system boot to Windows 8 from the VHD file rather than from a flat file structure on the USB drive.

Note: A much easier method is now available! Use the free version of WinToUSB to quickly create a bootable USB drive.

(async(window, document)=>{
// https://gist.github.com/hagb4rd/6843803a6674fe1b9ead6f1e60f14f15#file-queue-download-images-js
// -----------
// queue() returns a promise returning function. 'tasks' is an array of higher order functions that return 'promise returning'/'async' functions [()=>async(){ }].
// the purpose of that wrapping is not to start resolving the promise immediately, but being able to map parameters for the task.
//'concurrent' is the max. number of tasks to be executed in parallel.
function queue(tasks, concurrent) {
return function() {
var result = new Array(tasks.length);
@hagb4rd
hagb4rd / the-blubird-bukowski.md
Created October 11, 2022 18:11
The Bluebird - A Poem by Charles Bukowski

there's a bluebird in my heart that wants to get out but I'm too tough for him, I say, stay in there, I'm not going to let anybody see you.

there's a bluebird in my heart that wants to get out but I pour whiskey on him and inhale

@hagb4rd
hagb4rd / index.html
Created October 3, 2022 08:13
Responsive Periodic Table with CSS Grids
<ol class="periodic-table">
<li class="hydrogen">
<abbr title="Hydrogen">H</abbr>
</li>
<li id="helium" class="noble-gas">
<abbr title="Helium">He</abbr>
<span>2</span>
</li>
<li class="alkali">
<abbr title="Lithium">Li</abbr>
@hagb4rd
hagb4rd / all-saint-night.txt
Created October 2, 2022 05:41
all saints night on polish motorway - nicc behind the iron curfain #whiskeymysticsandmen -
Nico was still exiled in her special seat in the bus, ashtray overflowing, wrapped up in patchwork sheepskin jacket, silent and withdrawn. The fog rolled by. We'd wipe the condensation from the windows, but there was nothing to see and nowhere to stop and eat, just grey fading into black.
Then lights started to appear in the blackness, figures, more lights. We'd drive on. The gathering of lights increased, we could begin to distinguish people, faces illuminated by candlelight, gravestones. We reasoned, as it was November 2, that it must be All Saint's Night. In Poland, perhaps, the dead have more significance than the living. We drove on through dark and empty villages, to find the outskirts, the graveyards alight with humanity. It continued for a couple of hours, and even when the friends of the dead had dispersed the candles were left burning on the graves. Then it was black night again.
Suddenly Nico leapt from her seat. "Look! It's Jim!" She peered into the rolling god. "I can see him..."
'Jim's here,
@hagb4rd
hagb4rd / ulalume.md
Created October 2, 2022 03:33
ulalume

Ulalume

The skies they were ashen and sober;

The leaves they were crisped and sere -

The leaves they were withering and sere;

It was night in the lonesome October

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>imgur oauth</title>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script>
$(function () {
var extractToken = function(hash) {

EIGHT CIRCUIT MODEL OF CONSCIOUSNESS

this is still the most proper - analytic - decription .. won't beat the experiencing itself (or grimms fairy tales, but comes close) sorry it lost format, while copying.

Leary's

EIGHT CIRCUIT MODEL OF CONSCIOUSNESS

By Robert Anton Wilson

on Tunnel-Realities and Imprints