Skip to content

Instantly share code, notes, and snippets.

View mason276752's full-sized avatar
😇

Mason mason276752

😇
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active July 16, 2024 05:35
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; // ¯\\_(ツ)_/¯
@rfikki
rfikki / lightclient-ropsten-peers-latest.txt
Last active April 19, 2021 00:26
Last Updated 04/18/2021
admin.addPeer("enode://fafe7982ebe514913d295bc088fae3a2678aaf5783463421e7d2c22e1d2f363c2832143ecdd4a2270d14c2d0af80688e5ed0dce137e32812db6699c5e063c77e@167.71.164.90:30303");
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active May 15, 2024 12:02
Telegram 資訊相關 群組清單
@jerrybendy
jerrybendy / index.html
Created January 5, 2017 03:33
一个使用 HTML5 录音的例子(网上看到的,收藏下)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div>
<audio controls autoplay></audio>
<input onclick="startRecording()" type="button" value="录音" />
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl