I hereby claim:
- I am tlindsay on github.
- I am thatdarnpat (https://keybase.io/thatdarnpat) on keybase.
- I have a public key ASCi2y_1tqE5sn4oEkO_lVWJBckF_qE1JWnZ6shLZGEEsAo
To claim this, I am signing this object:
linters-settings: | |
govet: | |
disable-all: true | |
enable: | |
- nilness |
function rust_playground(opts) | |
---@diagnostic disable-next-line: redefined-local | |
local opts = opts or {} | |
local copy = opts.copy or false | |
local open = opts.open or false | |
local char_to_hex = function(c) | |
return string.format('%%%02X', string.byte(c)) | |
end | |
local function urlencode(url) |
# tinygo version 0.25.0 darwin/amd64 (using go version go1.18 and LLVM version 14.0.0) | |
# go version go1.18.3 darwin/arm64 | |
tinygo build -wasm-abi=generic -target=wasi -o bin/main.wasm main.go |
git branch -lv | fzf | awk '{print $1}' | xargs git checkout |
hub pr list | fzf | awk '{print $1}' | sed 's/\#//' | xargs hub pr checkout |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
bar: null, | |
valAtInit: null, | |
valAtDRA: null, | |
init() { | |
this._super(...arguments); | |
console.log('init', this.bar); |
#!/bin/sh | |
# | |
# This pre-commit hook will prevent you from continuing your work without resolving WIP commits | |
# It expects WIP commits to have the message `--wip-- [skip ci]` | |
# | |
# You can use the following commands to easily create and restore WIP commits: | |
# gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"' | |
# gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' | |
# | |
# To enable this hook, rename this file to "pre-commit". |
-- This script can be used in conjunction with Better Touch Tool to display the currently playing track on the MacBook Pro TouchBar | |
-- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar | |
if application "Spotify" is running then | |
tell application "Spotify" | |
if player state is playing then | |
return (get artist of current track) & " - " & (get name of current track) | |
else | |
return "" | |
end if |
<style> | |
.wrapper { | |
position: relative; | |
svg { | |
bottom: 50%; | |
left: 50%; | |
position: absolute; | |
right: 50%; | |
top: 50%; |
I hereby claim:
To claim this, I am signing this object: