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
| // Micro join calculus kernel in TypeScript | |
| const ready = Symbol('ready'); | |
| const take = Symbol('take'); | |
| const evaluate = Symbol('evaluate'); | |
| interface Mailbox<T> { | |
| (actual: T): void; | |
| readonly [ready]: boolean; | |
| [take](): T; |
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
| unbind-key C-b | |
| set-option -g prefix C-j | |
| bind-key C-j send-prefix | |
| set -g status-left "" | |
| set -g status-right " %b-%d %H:%M " | |
| set -g mode-style "fg=#1e1e2e,bg=#f5e0dc" | |
| set -g message-style "fg=#ff007c,bg=#f1c40f" | |
| set -g message-command-style "fg=#ff007c,bg=#0f1015" |
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
| --jetbrains-Profiler-CpuChart-pointBorderColor: rgb(60 63 65 / 1); | |
| --jetbrains-TextField-highlight: rgb(255 255 255 / 1); | |
| --jetbrains-ScrollBar-hoverThumbBorderColor: rgb(89 89 89 / 0); | |
| --jetbrains-EditorPane-caretForeground: rgb(187 187 187 / 1); | |
| --jetbrains-TabbedPane-foreground: rgb(187 187 187 / 1); | |
| --jetbrains-PopupMenu-foreground: rgb(187 187 187 / 1); | |
| --jetbrains-UIDesigner-Connector-borderColor: rgb(136 136 136 / 1); | |
| --jetbrains-CheckBoxMenuItem-foreground: rgb(187 187 187 / 1); | |
| --jetbrains-TabbedPane-focusColor: rgb(61 75 92 / 1); | |
| --jetbrains-activeCaptionText: rgb(0 0 0 / 1); |
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
| <!DOCTYPE html> | |
| <title>Hello, World</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| body { | |
| margin: 0; | |
| } | |
| #content { | |
| margin: 2em; |
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
| <!DOCTYPE html> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| canvas { | |
| width: 100vh; | |
| height: 100vh; |
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
| #!/bin/bash | |
| # Adapted from http://danielj.se/2012/09/09/how-to-live-stream-your-ubuntu-desktop/ | |
| INRES="2560x1440" # input resolution | |
| OUTRES="1920x1080" | |
| OFFSET="0,0" | |
| FPS="15" # target FPS | |
| QUAL="fast" # one of the many FFMPEG preset | |
| URL="rtmp://a.rtmp.youtube.com/live2/${STREAM_KEY:?You need to set STREAM_KEY.}" | |
| avconv -f x11grab -s "$INRES" -r "$FPS" -g $(expr $FPS / 4 + 1) \ |
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
| <!DOCTYPE html> | |
| <style> | |
| canvas { | |
| width: 1000px; | |
| height: 1000px; | |
| background: black; | |
| } | |
| </style> | |
| <canvas width="1000" height="1000"></canvas> | |
| <script> |
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
| <!DOCTYPE html> | |
| <style> | |
| canvas { | |
| width: 640px; | |
| height: 480px; | |
| background: black; | |
| } | |
| </style> | |
| <title>80 COLUMN GRAPHICS</title> | |
| <canvas></canvas> |
Dot diagram:
xs = c(17.8, 14.3, 15.8, 18.0, 20.2)
stripchart(xs)
Histogram:
xs = c(6.5, 2.1, 4.4, 4.7, 5.3, 2.6, 4.7, 3.0, 4.9, 4.7,
8.6, 5.0, 4.9, 4.0, 3.4, 5.6, 4.7, 2.7, 2.4, 2.7,
2.2, 5.2, 5.3, 4.7, 6.8, 4.1, 5.3, 7.6, 2.4, 2.1,
NewerOlder