Skip to content

Instantly share code, notes, and snippets.

@chrisbrasington
chrisbrasington / gist:4516f8df944ff0b1a14ab3fd24fb7213
Created August 11, 2026 01:57
ublock - fuck reddit upsell login wall (and more)
! ================================================
! Reddit — upsell / login wall
! ================================================
! ---- Firefox only: strip the bootstrap before it runs ----
reddit.com##^script:has-text(desktop_dynamic_upsell)
reddit.com##^script:has-text(dynamic_upsell)
! ---- Static hides: injected at document start, no flicker ----
reddit.com##div#desktop-dynamic-upsell-dialog
@chrisbrasington
chrisbrasington / README.md
Last active July 25, 2016 17:53
Lengthen or Shorten a 3D Line by a length constant

Using current member structure, find deltas.

$$\Delta_x=\frac{x_2-x_1}{\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}}$$

$$\Delta_y=\frac{y_2-y_1}{\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}}$$

$$\Delta_z=\frac{z_2-z_1}{\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}}$$

c = new length constant

@chrisbrasington
chrisbrasington / README.md
Last active October 17, 2020 03:21
three.js object loader

#three.js javascript 3D Library - OBJ loader

This object was created in blender and exported as an .OBJ file using the three.js OBJLoader.js

It's important you check that you have your normals correct on your model.

@chrisbrasington
chrisbrasington / README.md
Last active August 29, 2015 14:01
three.js (web.gl) sphere

#three.js javascript 3D Library.

This sphere was created with a pointlight and basic material color. Interestingly, rather than pulsate the light in and out, pulsating the red-black hue had the same effect. Various mouse event handlers were implemented for movement. Camera stays focused looking at origin of sphere/world.

Press D to see DEBUG information.