I hereby claim:
- I am paulbellamy on github.
- I am paulbellamy (https://keybase.io/paulbellamy) on keybase.
- I have a public key whose fingerprint is 3E60 6446 06E5 A7DA 0E1E C190 F2F3 DFDF 2D4D 0C48
To claim this, I am signing this object:
| #!/bin/bash | |
| host=`facter fqdn` | |
| if [[ ! -n "$1" ]]; then | |
| port=8000 | |
| else | |
| port=$1 | |
| fi | |
| echo "http://$host:$port" |
| <!--# include virtual="/dynamic_partials/header" set="header" wait="yes" --> | |
| <!--# if expr="$header" --> | |
| <!--# echo var="header" encoding="none" --> | |
| <!--# else --> | |
| {% include logged_out_header.html %} | |
| <!--# endif --> |
| (import '[java.util.concurrent CountDownLatch]) | |
| (require '[clojure.core.async :as async]) | |
| (defn now [] | |
| (System/currentTimeMillis)) | |
| (defn waiter [i latch results] | |
| (async/go | |
| (swap! results conj [i :waiting (now)]) | |
| (.await latch) ;; Will block the thread |
| //usr/bin/env go run $0 $@ | |
| package main | |
| import ( | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "os" | |
| "github.com/conformal/btcnet" |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # /etc/rc.d/git_annex | |
| # PROVIDE: git_annex | |
| # REQUIRE: LOGIN FILESYSTEMS NETWORKING | |
| # KEYWORD: shutdown | |
| . /etc/rc.subr | |
| name="git_annex" |
| # if selecta is present, set that as the default behaviour of z command | |
| if which ${_Z_CMD:-z} 2>&1 1>/dev/null && which selecta 2>&1 1>/dev/null; then | |
| z_selecta() { | |
| if [ $# -gt 0 ]; then | |
| _z "$@" 2>&1 | |
| else | |
| _z "$(_z |& awk '{print $2}' | selecta)" 2>&1 | |
| fi | |
| } | |
| alias ${_Z_CMD:-z}='z_selecta' |
| prev_dir() { | |
| zle push-line | |
| cd - | |
| zle reset-prompt | |
| echo | |
| zle get-line | |
| } | |
| zle -N prev-dir prev_dir | |
| bindkey '^e' prev-dir |
| # ctrl-z on the prompt will resume last | |
| # This means, from vim I can ctrl-z to the shell, and ctrl-z back again. | |
| foreground-last() { | |
| fg % | |
| } | |
| zle -N foreground-last | |
| bindkey '^z' foreground-last |
| import { ApolloProvider, useQuery } from "@apollo/react-hooks"; | |
| import ApolloClient, { InMemoryCache } from "apollo-boost"; | |
| import { GraphQLError } from "graphql"; | |
| import { GetServerSideProps } from "next"; | |
| import { useRouter } from "next/router"; | |
| import wrap, { InitApolloClient, WithApolloProps } from "next-with-apollo"; | |
| // Add our query here. If we want this in a different file we could use | |
| // graphql-codegen to parse that for us and generate documents and hooks. | |
| import gql from "graphql-tag"; |