This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:((w)=>{let u=new URL(w.location);u.searchParams.set("data",JSON.stringify({"statistics":JSON.parse(w.localStorage.getItem("nyt-wordle-statistics")),"darkTheme":0}));w.prompt("copy url",u.href);})(window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH consts AS ( | |
SELECT | |
8 AS n, -- number of iterations | |
500 AS l, -- width & height of image | |
0.7265425280053609 AS tan36, -- tan(π/5) | |
0.6180339887498948 AS d -- 1/φ | |
), tiles (p, i, t, px, py, qx, qy, rx, ry, sx, sy, tx, ty) AS ( | |
SELECT 0, n, 1, -l/tan36, 0, 0, l, l/tan36, 0, 0, 0, 0, 0 FROM consts | |
UNION ALL SELECT 1, i-1, t, px, py, qx, qy, rx, ry, (qx-px)*d+px, (qy-py)*d+py, (rx-px)*d+px, (ry-py)*d+py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# grass.rb - Grass interpreter | |
# with call/cc extension | |
# http://www.blue.sky.or.jp/grass/ | |
# | |
# Copyright (C) 2020-2021 Yousuke Ushiki All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ndice = $*[0].to_i | |
rounds = $*[1].to_i | |
rounds.times { | |
puts ndice.times.map{(rand(6)+1).to_s}*" " | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%! | |
%%BoundingBox: 0 0 540 540 | |
/N 4 def | |
0 0.4 0.8 setrgbcolor | |
0.5 setlinewidth | |
/len 400 3 N exp div def | |
/k { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Texture2D shaderTexture; | |
SamplerState samplerState; | |
cbuffer PixelShaderSettings { | |
float Time; | |
float Scale; | |
float2 Resolution; | |
float4 Background; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Texture2D shaderTexture; | |
SamplerState samplerState; | |
cbuffer PixelShaderSettings { | |
float Time; | |
float Scale; | |
float2 Resolution; | |
float4 Background; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Texture2D shaderTexture; | |
SamplerState samplerState; | |
cbuffer PixelShaderSettings { | |
float Time; | |
float Scale; | |
float2 Resolution; | |
float4 Background; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- requires SQLite ver.3.34.0 or later | |
-- ref. How to construct Penrose tilings | |
-- https://tartarus.org/~simon/20110412-penrose/penrose.xhtml | |
WITH consts AS ( | |
SELECT | |
8 AS n, -- number of iterations | |
500 AS l, -- width & height of image | |
0.7265425280053609 AS tan36, -- tan(π/5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- requires SQLite ver.3.34.0 or later | |
-- ref. How to construct Penrose tilings | |
-- https://tartarus.org/~simon/20110412-penrose/penrose.xhtml | |
WITH consts AS ( | |
SELECT | |
8 AS n, -- number of iterations | |
500 AS l, -- width & height of image | |
0.7265425280053609 AS tan36, -- tan(π/5) |