I hereby claim:
- I am mblarsen on github.
- I am mblarsen (https://keybase.io/mblarsen) on keybase.
- I have a public key ASDazMiuoLmVqtEF123TAjZvE7S47WTshQTiHzeg1-H7lAo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| op vault list > /dev/null 2>&1 | |
| # Check the exit status of the previous command | |
| if [ $? -ne 0 ]; then | |
| echo "1Password session is not valid. Please log in again." | |
| eval $(op signin) | |
| else | |
| echo "1Password session is valid." |
| -- public/tabline.lua | |
| -- orginal version actually used tabline, this version uses a floating window | |
| -- @bassamsdata added the window logic https://gist.github.com/bassamsdata/80d59a68e5560da37c4ff9161897c691 | |
| -- this gist contains adds styling as it the original, version 1, of the gist | |
| local function current_time() | |
| return os.date "%H:%M" | |
| end | |
| local function current_day() |
| #!/usr/bin/env bash | |
| for f in $(ls /usr/share/figlet/*{flf,tlf}); do | |
| f=$(basename -s .tlf $f) | |
| f=$(basename -s .flf $f) | |
| figlet -f $f $f | |
| toilet --gay -S -f $f $f | |
| echo $f | |
| done |
| rm -f ~/.zcompdump* | |
| exec zsh -l |
| func TestHandler(t *testing.T) { | |
| req := api.Req{} | |
| reqBody, _ := json.Marshal(map[string]interface{}{ | |
| "requestContext": map[string]interface{}{ | |
| "Authorizer": map[string]interface{}{ | |
| "claims": map[string]interface{}{ | |
| "cognito:username": "my user", | |
| }, | |
| }, | |
| }, |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| function builds() { | |
| curl -s https://graphql.buildkite.com/v1 \ | |
| -H "Authorization: Bearer $GRAPHQL_KEY" \ | |
| -d '{ | |
| "query": "query SuccessfullBuilds { pipeline(slug: \"'"$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG"'\") { builds { edges { node { id commit message state } } } } }", | |
| "variables": "{ }" | |
| }' |
I hereby claim:
To claim this, I am signing this object:
| Object.defineProperty( // eslint-disable-line | |
| Array.prototype, 'flatMap', { | |
| value: function (mapFunction) { | |
| return Array.prototype.concat.call([], ...this.map(mapFunction)) | |
| } | |
| } | |
| ) | |
| Object.defineProperty( // eslint-disable-line | |
| Array.prototype, 'tap', { |
| <template> | |
| <div class="source-text"> | |
| <div class="source-text__code" ref="content" @input="throttledUpdate" contenteditable="true" spellcheck="false"></div> | |
| <div class="has-text-left"> | |
| <button @click="$emit('input', '')" class="button is-success">Clear</button> | |
| </div> | |
| </div> | |
| </template> | |
| <script> | |
| import {debounce} from 'lodash-es' |
| <template> | |
| <div class="split"> | |
| <div class="split__item"> | |
| <cms-page v-model="content"></cms-page> | |
| <source-text v-model="content"></source-text> | |
| </div> | |
| <div class="split__item"> | |
| <front-page v-model="content"></front-page> | |
| </div> | |
| </div> |