const a = `A sette
To put
A skrelle
To peel
A steke
VScode / Vscodium options to make go look pretty when testing packages
{
"go.coverageDecorator": {
"type": "highlight",
"coveredBorderColor": "rgba(64,128,128,0.8)",
"coveredHighlightColor": "rgba(64,128,128,0.8)",
"uncoveredHighlightColor": "rgba(128,64,64,0.5)",
"uncoveredGutterStyle": "verticalred"
"go.testEnvVars": {
"GINKGO_EDITOR_INTEGRATION": true,
},
WITH _base(uuid,user_uuid,kind,records,state) AS (
SELECT uuid,user_uuid,kind,records,state FROM stats
),
_challenge_plank_per_user(uuid, user_uuid, total) AS (
SELECT uuid, json_extract(value,'$.user_uuid'), SUM(json_extract(value,'$.timerNow')) FROM _base, json_each(records) WHERE kind='challenge.plank' GROUP BY uuid, json_extract(value,'$.user_uuid')
),
_challenge_plank_per_user_sum(uuid, total) AS (
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Resize from 6.5 to 5.5 | |
# Adapted from https://gist.github.com/fhasni/f741333d1437b1033652d30cc3e7543d | |
VERSION="1.0.3" | |
OUTPUT_DIR="output/scaled" | |
for filename in ./${VERSION}/*; do | |
w=$(printf "%.2f" $(echo '(1242/1284)*100' | bc -l)) | |
h=$(printf "%.2f" $(echo '(2208/2778)*100' | bc -l)) | |
mkdir -p $OUTPUT_DIR |
generate-openapi-one:
rm -rf /tmp/openapi/one && \
mkdir -p /tmp/openapi/one && \
cp ./openapi/learnalist.yaml /tmp/openapi/one/ && \
yq m -i /tmp/openapi/one/learnalist.yaml ./openapi/api.version.yaml && \
yq m -i /tmp/openapi/one/learnalist.yaml ./openapi/api.asset.yaml && \
yq m -i /tmp/openapi/one/learnalist.yaml ./openapi/api.plank.yaml && \
yq m -i /tmp/openapi/one/learnalist.yaml ./openapi/api.user.yaml && \
yq m -i /tmp/openapi/one/learnalist.yaml ./openapi/api.alist.yaml && \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"context" | |
"database/sql" | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" |
NewerOlder