Skip to content

Instantly share code, notes, and snippets.

@OrionReed
OrionReed / dom3d.js
Last active April 26, 2024 16:59
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@Wikunia
Wikunia / vis_digits.jl
Created July 13, 2020 16:58
Visualzing digits
using Luxor, ColorSchemes
using UnicodeFun
using Primes
struct PNGScene
opts::Dict{Symbol, Any}
end
function get_coord(val, radius)
θ = 2π*0.1*val
@mdvsh
mdvsh / scene.ipynb
Created December 28, 2019 15:31
This script draws a scene using the package Luxor.jl. It looks simple at first, ̷b̷u̷t̷ ̷u̷s̷e̷s̷ ̷c̷o̷m̷p̷l̷e̷x̷ ̷f̷e̷a̷t̷u̷r̷e̷s̷ ̷o̷f̷ ̷L̷u̷x̷o̷r̷.̷j̷l̷ ̷t̷o̷ ̷a̷d̷d̷ ̷a̷t̷t̷e̷n̷t̷i̷o̷n̷ ̷t̷o̷ ̷d̷e̷t̷a̷i̷l̷.̷ and is indeed simple.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ismael-VC
Ismael-VC / server.jl
Last active February 10, 2016 08:24
Julia plot server.
#!/usr/bin/env julia
port = begin
try
parse(Int, ARGS[1])
catch err
error("usage: `$ julia server.jl <port>`")
end
end
@gizmaa
gizmaa / Plot_Examples.md
Last active April 12, 2024 14:18
Various Julia plotting examples using PyPlot
@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active March 30, 2024 07:53
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@kosh04
kosh04 / curl.lsp
Created August 2, 2011 07:46
[newLISP]libcurlライブラリを利用したサンプルコード -> [moved] https://github.com/kosh04/newlisp-curl
;;; curl.lsp -- libcurl for newLISP
;; ChangeLog:
;;
;; 2013-12-04 add function curl-get. add dylib (osx).
;; 2011-08-02 first commit.
;; Link:
;;
;; libcurl - API