Skip to content

Instantly share code, notes, and snippets.

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

@hagb4rd
hagb4rd / README.md
Last active October 1, 2020 17:52
JSLAVE - irc bot m0ther concept
@hagb4rd
hagb4rd / hexchat.whitelist.py
Last active April 9, 2019 23:17
A hexchat addon providing a way to whitelist users (/add nick). anyone else will be muted in channels added to (/safe) is muted.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
@d7samurai
d7samurai / .readme.md
Last active April 11, 2024 09:53
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Also check out Minimal D3D11 pt2, reconfigured for instanced rendering and with a smaller, tighter, simplified overall code structure, or Minimal D3D11 pt3, with shadowmapping + showcasing a range of alternative setup and rendering techniques.

//
// This file is part of ColorZilla
//
// Written by Alex Sirota (alex @ iosart.com)
//
// Copyright (c) iosart labs llc 2011, All Rights Reserved
//
var cz = exports;

simple-module-pattern.md

(11:00:56)<earendel>n>var module=(function() { var arr=[1,2,3,4,5]; var sum=(a,b)=>a+b;  return { items: arr, sum: sum }; })();  module.items.reduce(module.sum); //simple module pattern. just return an object which contains all things that shall be public/accessible to the user/programmer -> exports/interface .. that way you can have all your shit in a single object not polluting the global scope @thevishy
- 13 min, 53 sec
(11:14:49)<earendel>yw. but you wouldn't want it. that module pattern is understood?
(11:19:34)<earendel>oh..maybe i should add: in the browser the global object is window (not in the browser extension context, or service workers tho) .. in node however each file is a module and has it own root scope .. but its really just a function span around it.. x=1 would still be planted onto the global scope when not x is not declared in some inner scope. just do sth like cx={} 
@hagb4rd
hagb4rd / requirejs.bat
Last active September 30, 2017 16:41
CMD.exe ComSpec Windows .BAT & .COM script samples
REM A Set of requirejs related repositories
git clone https://github.com/hagb4rd/ea-webkit.git
git clone https://github.com/cssinjs/jss-global.git
git clone https://github.com/millermedeiros/requirejs-plugins.git
git clone https://github.com/jfparadis/requirejs-mustache.git
git clone https://github.com/millermedeiros/requirejs-plugins.git
git clone https://github.com/guybedford/require-css
git clone https://github.com/requirejs/text.git
git clone https://github.com/requirejs/i18n.git
@hagb4rd
hagb4rd / babel-ecma2015-cdn.html
Last active June 4, 2016 15:28
HTML-Templates
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="author" content="kasia99@gmx.de">
@joepie91
joepie91 / getting-started.md
Last active February 21, 2024 14:45
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!

###Javascript Patterns ..thx @ Sorella

####Composition

function compose() {
  var traits = [].slice.call(arguments)
  return traits.reduce(function(result, trait) {
    for (var k in trait)