Skip to content

Instantly share code, notes, and snippets.

View terbo's full-sized avatar
💭
everybody must get annointed

CB terbo

💭
everybody must get annointed
View GitHub Profile
@mbostock
mbostock / .block
Last active March 30, 2024 00:26
Randomized Depth-First III
license: gpl-3.0
@mbostock
mbostock / .block
Last active September 11, 2024 10:57
Maze Tree
license: gpl-3.0
@mbostock
mbostock / .block
Last active November 28, 2019 00:39
Prim’s Algorithm V
redirect: https://observablehq.com/@mbostock/prims-algorithm-v
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@4ndr01d3
4ndr01d3 / README.md
Last active November 23, 2016 05:25
How a Quadtree is created

How a Quadtree is created

This demo shows an animation explaining how a Quadtree is created using D3: "A quadtree is a two-dimensional recursive spatial subdivision. This implementation uses square partitions, dividing each square into four equally-sized squares."

The demo was inspired by the article on Visualizing Algorithms. To draw the points and the quadtree squares I took some code from this Example. The tree basically reuses the code of this Example.

@jeffpatton1971
jeffpatton1971 / Get-WinEventTail.ps1
Last active December 14, 2023 16:59
This function will allow you to tail Windows Event Logs. You specify a Logname for either the original logs, Application, System and Security or the new format for the newer logs Microsoft-Windows-PowerShell/Operational
Function Get-WinEventTail
{
<#
.SYNOPSIS
A tail cmdlet for Eventlogs
.DESCRIPTION
This function will allow you to tail Windows Event Logs. You specify
a Logname for either the original logs, Application, System and Security or
the new format for the newer logs Microsoft-Windows-PowerShell/Operational
.PARAMETER LogName
@oyyd
oyyd / README.md
Last active August 21, 2024 02:24
Days-Hours Heatmap
@zanarmstrong
zanarmstrong / datgui-min.js
Last active November 25, 2016 16:56
Create Your Own Texture!
var dat=dat||{};dat.gui=dat.gui||{};dat.utils=dat.utils||{};dat.controllers=dat.controllers||{};dat.dom=dat.dom||{};dat.color=dat.color||{};dat.utils.css=function(){return{load:function(e,a){a=a||document;var b=a.createElement("link");b.type="text/css";b.rel="stylesheet";b.href=e;a.getElementsByTagName("head")[0].appendChild(b)},inject:function(e,a){a=a||document;var b=document.createElement("style");b.type="text/css";b.innerHTML=e;a.getElementsByTagName("head")[0].appendChild(b)}}}();
dat.utils.common=function(){var e=Array.prototype.forEach,a=Array.prototype.slice;return{BREAK:{},extend:function(b){this.each(a.call(arguments,1),function(a){for(var f in a)this.isUndefined(a[f])||(b[f]=a[f])},this);return b},defaults:function(b){this.each(a.call(arguments,1),function(a){for(var f in a)this.isUndefined(b[f])&&(b[f]=a[f])},this);return b},compose:function(){var b=a.call(arguments);return function(){for(var d=a.call(arguments),f=b.length-1;0<=f;f--)d=[b[f].apply(this,d)];return d[0]}},
each:function(a,d,f){if(e&
@mbostock
mbostock / .block
Last active August 5, 2020 20:35
Spiral Triangle
license: gpl-3.0
@mbostock
mbostock / .block
Last active November 21, 2016 03:41
Spiral Triangle III
license: gpl-3.0