This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| ;;; -*- mode: lisp; package: wsl -*- | |
| (defpackage :wsl | |
| (:use :lisp :editor)) | |
| (in-package :wsl) | |
| (export '(run-wsl | |
| run-wsl-in-buffer | |
| convert-wslpath-to-win |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 600 450 | |
| % ref. https://tartarus.org/~simon/20110412-penrose/penrose.xhtml | |
| /N 8 def | |
| /linecolor { 0 0.2 0.6 setrgbcolor } def | |
| /fillcolor { 0.8 0.9 1.0 setrgbcolor } def | |
| 0.5 setlinewidth |