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
| alacritty | `mpstat 5 1` | |
| 02:38:24 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle | |
| 02:38:29 PM all 0.16 0.00 0.09 0.01 0.06 0.03 0.00 0.00 0.00 99.65 | |
| firefox/youtub.com 4k video (alacritty) | `mpstat 5 1` | |
| 02:41:48 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle | |
| 02:41:53 PM all 6.68 0.00 1.08 0.05 0.31 0.15 0.00 0.00 0.00 91.73 | |
| ghostty | `mpstat 5 1` | |
| 02:39:45 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle |
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
| import Control.Concurrent | |
| import Control.Concurrent.Async | |
| main:: IO() | |
| main = do | |
| a <- async (do threadDelay 5000; return 42) | |
| r <- wait a | |
| putStrLn ("The answer is: " ++ show r) |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| c := make(chan int) |
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
| // ==UserScript== | |
| // @name Present tool styling. | |
| // @namespace https://www.codemodus.com | |
| // @version 0.1 | |
| // @description Configure present tool style using a "theme" param. (options: dark|light) | |
| // @author daved | |
| // @match http*://*/*.slide* | |
| // @grant none | |
| // ==/UserScript== |
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
| package main_test | |
| import ( | |
| "strings" | |
| "testing" | |
| ) | |
| const ( | |
| primeRK = 16777619 | |
| ) |
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
| package chain_test | |
| import ( | |
| "net/http" | |
| "net/http/httptest" | |
| "testing" | |
| "github.com/codemodus/chain" | |
| "golang.org/x/net/context" | |
| "github.com/kressin/middleware" |