I hereby claim:
- I am andrioid on github.
- I am andrioid (https://keybase.io/andrioid) on keybase.
- I have a public key ASBGyzR9oDNGwQMN6sGbtbGgq-4XqyQG_JG6jsuckLzg9wo
To claim this, I am signing this object:
const uq = useInfiniteQuery({ | |
queryKey: ["all_contacts"], | |
queryFn: ({ pageParam }) => | |
api.getContacts({ | |
page: pageParam, | |
}), | |
getNextPageParam: (lastPage) => { | |
if (lastPage.pagination.hasNextPage === false) return null; | |
return lastPage.pagination.currentPage + 1; | |
}, |
# nosense.tcl by Andri Oskarsson | |
# - merlin@scrolls.org | |
# - Merlin@IRCnet | |
# | |
# designed to detect lines that are not classified as an actual conversation | |
# - It currently detects: caps, repeat, colors, bold, reverse, disturbance and more | |
# To mark channels for nosense detection do like (.chanset #channel +nosense) | |
# Lets make it so |
{ | |
"basics": { | |
"name": "Andri Óskarsson", | |
"label": "Computer Engineer", | |
"picture": "https://andri.dk/static/3a12aa0364d1851eaab41841f8a12b88/284df/coffee-art.jpg", | |
"email": "m@andri.dk", | |
"website": "https://andri.dk", | |
"summary": "Driven, independent Software Developer with a broad skill set.", | |
"location": { | |
"city": "Aalborg", |
# build/base-image/Dockerfile | |
FROM golang:1.10-alpine | |
ENV GOBIN /go/bin | |
RUN apk add --no-cache git | |
RUN go get -u github.com/golang/dep/cmd/dep && go get -u github.com/githubnemo/CompileDaemon | |
VOLUME ["/go/src/gitlab.com/parkpark/parking"] |
I hereby claim:
To claim this, I am signing this object:
# change title name of tab in terminal | |
function title { | |
echo -ne "\033]0;"$*"\007" | |
} | |
enter_directory(){ | |
if [ "$PWD" != "$PREV_PWD" ]; then | |
PREV_PWD="$PWD"; | |
title $(echo ${PWD##*/}) $(node -v); | |
if [ -e ".nvmrc" ]; then |
for line in $(find . -iname '*.dtpl'); do | |
config=${line%.dtpl} | |
cp $line $config | |
echo "Replacing '$config'" | |
for key in $(cat $config | grep -o -P '({{[0-9a-z_-]+}})'); do | |
ukey=$(echo $key | sed 's/.*/\U&/' | sed -e "s/{{//" | sed -e "s/}}//") | |
val=$(eval "echo \$${ukey}") | |
#echo "Tag: $key $ukey $val" | |
if [ -n "$val" ]; then |
// HTTP Fire and Forget (Asynchronous, mostly - hey it's PHP!) | |
public static function SendHTTP($action, $data = null, $service = 'admin', $host = false, $port = false, $key = false){ | |
if ($port == false) { $port = Config::Get('MBISS_PORT'); } | |
if ($host == false) { $host = Config::Get('MBISS_HOST'); } | |
if ($key == false) { $key = Config::Get('MBISS_KEY'); } | |
if (data == null) { $data = array(); } | |
if ($key == false) { $key = ''; } | |
if (empty($host) || empty($port)) { return false; } |
I hereby claim:
To claim this, I am signing this object:
<?php | |
interface ICircuitBreakerStorage { | |
} | |
class CircuitBreaker { | |
/** | |
* StorageImplemntation should be a defined interface. | |
**/ |