- your favourite search engine
- stackoverflow is useful, but often confusing and/or wrong (but a good start anyway)
- The Command Line Crash Course (tiny "book", good introduction)
- more in depth, but only for linux: Learning The Shell
- Terminus (game)
- commandlinefu.com (advanced commandline examples)
- explainshell (explains pasted commandlines)
- linux in the browser
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
curl -s 'http://search.maven.org/solrsearch/select?q=g:org.clojure+AND+a:test.check+AND+p:jar&core=gav&rows=1&wt=json' | jq '.response.docs[]' |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"time" | |
) |
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
#!/bin/sh | |
pacman -Qi | grep -e '^Installed Size' -e '^Name' -e '^$' | perl -0777 -pe 's/Name\s+: ([-.a-zA-Z0-9]+)\nInstalled Size\s+: ([^\n]+) ([KM])iB\n/\2\3\t\1/gs' | sort -h |
I hereby claim:
- I am heylu on github.
- I am wunderseltsam (https://keybase.io/wunderseltsam) on keybase.
- I have a public key ASAW5uYIWnL8KCLBGE1bE0zDaZiN55Miqvw5sMTuGurB7wo
To claim this, I am signing this object:
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
document.head.innerHTML = "<title>Math.random() noise!</title>"; document.body.innerHTML = "<canvas></canvas>"; canvas = document.querySelector("canvas"); canvas.width = canvas.height = 300; ctx = canvas.getContext("2d"); ctx.clearRect(0, 0, canvas.width, canvas.height); for (let x = 0; x < canvas.width; x++) { for (let y = 0; y < canvas.height; y++) { r = Math.floor(Math.random() * 255); ctx.fillStyle = `rgb(${r}, ${r}, ${r})`; ctx.fillRect(x, y, 1, 1); } } |
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
// An experiment towards a nice http api in Go | |
// | |
// What is a "pretty" api? | |
// | |
// - content negotiation (including errors) | |
// - public vs internal errors | |
// - extensible (i.e. additional formats can be added easily) | |
// | |
// The current implementation has the first two, but not the last. | |
package main |
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
/* | |
* A little experiment with date parsing. | |
*/ | |
package main | |
import ( | |
"fmt" | |
"regexp" | |
"strconv" | |
"time" |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
) |
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
<!doctype html> | |
<!-- | |
The real/complete code is at https://github.com/heyLu/lp/tree/master/glsl | |
--> | |
<html> | |
<head> | |
<title>Raymarching!</title> | |
</head> | |
<body> |
NewerOlder