144.96
package main
import "fmt"
func main() {
var x float32 = 144.96
var y float64 = 144.96
144.96
package main
import "fmt"
func main() {
var x float32 = 144.96
var y float64 = 144.96
// https://jameshfisher.com/2018/02/20/c-inline-assembly-hello-world/ | |
int main(void) { | |
register int syscall_no asm("rax") = 1; | |
register int arg1 asm("rdi") = 1; | |
register char* arg2 asm("rsi") = "hello, world!\n"; | |
register int arg3 asm("rdx") = 14; | |
asm("syscall"); | |
return 0; | |
} |
This can be because there are video html that is trying to load at same time.
This can break some browser behavior that will not even attempt to use cached images for some reason.
Make preload="none"
for videos to stop loading them, and then browser will attempt to use etags for images.
Add Cache Control: public
. This will make Safari to attempt If-None-Match
and make 304 requetsts. private
should also work.
2024-04-23
// https://go.dev/play/p/HTKZzENHPcG | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Color struct{ c uint } |
// https://go.dev/play/p/1nLXyCDe1_3 | |
// because UNIX! 🐣 | |
package main | |
import "fmt" | |
var ( | |
Read = Permission{0x1} | |
Write = Permission{0x2} | |
Execute = Permission{0x4} |
// 🍧 | |
package main | |
import "fmt" | |
type LRUCache struct { | |
size int | |
vals map[string]string | |
order PtrList | |
} |
Convert to CSV
jq -r '[.function_name, .call_count] | @csv'
// does go unpack multiple assignment with variable returns? | |
// no 🙅🏻♂️ | |
// https://go.dev/play/p/8wKi-2J7aL7 | |
package main | |
import "fmt" | |
func one(v int) int { return v } | |
func two() (int, int) { return 2, 3 } |
// slice of strings as CLI argument 🐹 | |
// https://pkg.go.dev/flag#Value | |
package main | |
import ( | |
"flag" | |
"log" | |
) | |
type arrayFlags []string |
https://go.dev/play/p/Z3myZb93aNt | |
// base64 with invisible chars 🤖 | |
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
) | |
func main() { |