Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>canvas</title>
<style>
canvas {
border: 1px solid black;
}
</style>
@BriSeven
BriSeven / decompose-matrix.js
Last active May 23, 2021 15:21
Decompose a 2D transform matrix into [rotate scale rotate translate]
function decomposeMatrix(m) {
var t,r,s,k,E,F,G,H,Q,R,sx,sy,a1,a2,theta,phi,sqrt=Math.sqrt,atan2=Math.atan2;
// http://math.stackexchange.com/questions/861674/decompose-a-2d-arbitrary-transform-into-only-scaling-and-rotation
//
// It works wonderfully! Thanks.
// The input matrix is transposed though,
// so let me spell the solution out.
E=(m[0]+m[3])/2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
canvas {
border: 1px solid black;
}
</style>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
༎ຶ
@BriSeven
BriSeven / get on my lawn .md
Last active August 1, 2024 19:53
Get On My Lawn Software

Get ON my lawn is a software philosophy that believes good software grows better with time.

Get on my lawm shuns trends and salesmen disguised as programmers.

Get on my lawn shuns the fancy new framework.

@BriSeven
BriSeven / lcd-research.txt
Created December 2, 2019 07:04
Retro /Hobbyist LCD and graphics drivers research
ym 2151 sound chip
saa 1099 sound chip
http://www.raio.com.tw/en/RA8876.html
RA8876 lcd driver/controller video chip
RA8877
https://github.com/techtoys/HDMI-Shield/tree/master/Ra8876_Lite
ILI9486 (480x320)
@BriSeven
BriSeven / circular-reasoning.md
Last active January 8, 2020 05:17
Math and tag test #math #circles #latex

math test #tagtest

Right now a20 is this:

$a_{20}=1.6$

representing the angle on the PTT solution circle that solves for the two connection circles. for an optimal curve (where both circle segments are equal in length), I want to find

@BriSeven
BriSeven / qaballah.html
Created January 14, 2020 06:11
qaballah graph visjs dot playgrownd
<!DOCTYPE html> <html><!--
Page saved with SingleFile
url: https://visjs.github.io/vis-network/examples/network/data/dotLanguage/dotPlayground.html
saved date: Mon Jan 13 2020 14:13:11 GMT+1100 (Australian Eastern Daylight Time)
--><meta charset=utf-8>
<title>Vis Network | Data | DOT language playground</title>
<link type=image/x-icon rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="></head>
@BriSeven
BriSeven / hilbert.svg
Last active January 15, 2020 07:16
hilbert svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.