Skip to content

Instantly share code, notes, and snippets.

Casey Weed Battleroid

Block or report user

Report or block Battleroid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nginx.conf
user nginx;
worker_processes auto;
pid /var/run/;
events {
worker_connections 1024;
http {
View results
Using events with 6144 elements
Warming up --------------------------------------
each 1.000 i/100ms
map 1.000 i/100ms
map + uniq 1.000 i/100ms
map + set 1.000 i/100ms
chunked by thread 1.000 i/100ms
chunked by thread 1.000 i/100ms
Calculating -------------------------------------
each 2.569 (± 3.7%) i/s - 26.000 in 10.237953s
View gist:ae0eeeeca3ac88f0ff3e05072760b6a0
diff --git a/src/ b/src/
index fcd7775..0554a07 100644
--- a/src/
+++ b/src/
@@ -49,17 +49,15 @@ public class SNode implements Comparable<SNode> {
static public double distanceTo(SNode f, SNode t) {
- double dx = Math.abs(f.x - t.x);
- double dy = Math.abs(f.y- t.y);
Battleroid / cat indices
Last active Jun 14, 2019
Sample run(s) with ILM changes
View cat indices
health status index uuid pri rep docs.count docs.deleted store.size
green open test-2019.06.14-000001 Uojm0KlsTN-MAIuCrypmjg 5 1 100 0 98.8kb 41.6kb
green open ghi-2019.06.14-000001 wnK2VzqDTnCs7yfBcfc84Q 5 1 100 0 124.8kb 49.6kb
green open def-2019.06.14-000001 C-wMZRCOT-GzasLJWecNpQ 5 1 100 0 138kb 56.3kb
green open abc-2019.06.14-000001 20q8O_8zTXKTgEfB_jrxoQ 5 1 100 0 118kb 49.6kb
View org
M115 U3.6.0 ; tell printer latest fw version
M83 ; extruder relative mode
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
G1 Y-3.0 F1000.0 ; go outside print area
G92 E0.0
View fiddle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import asyncio
import time
async def hello():
t = time.time()
print(f'Hello {t}')
return t
mkdir tmp
for i in `seq 1 100`;
let "owo=100-$i"
echo $owo
convert -liquid-rescale $owo% $1 ./tmp/$i.png
convert -scale 300x300 ./tmp/$i.png ./tmp/$i.png
convert -delay 1 -loop 0 ./tmp/{1..100}.png ${2:-result.gif}
rm -rf ./tmp
View morphman.go
package main
import (
View gist:b998836ff341f866a771820ffaf05ab6
:set inccommand=nosplit
You can’t perform that action at this time.