I hereby claim:
- I am tsuki on github.
- I am tsukatsuki (https://keybase.io/tsukatsuki) on keybase.
- I have a public key ASBQ1wcgzFx-JZaa-pN2LdQ1jBJOI6ZsGWGds-b_p_nUYAo
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| type Card struct { | |
| Rank int | |
| Hands []int |
| workspace(name = "") | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "io_bazel_rules_go", | |
| urls = [ | |
| "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", | |
| "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", | |
| ], |
| { | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "pointing_button": "button4" | |
| }, | |
| "to": { | |
| "key_code": "open_bracket", | |
| "modifiers": [ | |
| "left_command" |
| bazel query //... --output label_kind | sort | column -t |
| fHwq |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "bytes" | |
| "crypto/des" | |
| "errors" | |
| ) | |
| func PKCS5Padding(ciphertext []byte, blockSize int) []byte { | |
| padding := blockSize - len(ciphertext)%blockSize |
| #!/bin/sh | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time | |
| # reading and understanding it :) | |
| # | |
| # This scripts purpose is purly to save you a few seconds on your new installation. | |
| # | |
| # Enjoy your time on an awesome system. Arch FTW! |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Related to https://gist.github.com/tfnico/5926374 | |
| // and http://stackoverflow.com/questions/14464486/guava-input-output-suppliers-and-urlconnection | |
| static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); | |
| public void sendMessage(String url, String params){ | |
| final HttpURLConnection connection; | |
| try { | |
| HttpRequestFactory requestFactory = HTTP_TRANSPORT.createRequestFactory(); |