Skip to content

Instantly share code, notes, and snippets.

Auxiliary-Character auxiliary-character

View GitHub Profile
View hole-demo.scad
$fn = 100;
hole_diameter = 1;
hole_length = 2;
z_fight_epsilon = 0.0001;
module substrate(){
difference(){
cube([hole_diameter*2, hole_length-z_fight_epsilon*2, hole_diameter*2], center=true);
rotate([90,0,0])
View state_taxes.csv
state_name average federal state property
West Virginia 6837.16 3984.78 1734 544.44
Montana 7034.50 4856.10 2481 1846.14
Mississippi 7086.42 3730.86 1731 943.94
Kentucky 7536.60 4244.82 2268.30 1160.92
Arkansas 7858.01 3947.82 1829.91 761.37
South Carolina 7903.51 4530.06 2925.62 856.98
New Mexico 8261.34 4348.38 1845.83 1319.85
Alabama 8407.85 4238.46 1810.98 556.80
Louisiana 8627.36 4345.74 1555.43 957.52
View mobile-redirect.js
// ==UserScript==
// @name Mobile Redirect
// @version 1.0
// @description general purpose mobile->desktop redirect
// @author auxchar
// @match *://*/*
// @grant none
// ==/UserScript==
View regex_composition_snippet.py
float_regex = """([\+\-\ ]\d{3}\.\d{2})"""
int8_regex = """([0-9A-Fa-f]{2})"""
int16_regex = """([0-9A-Fa-f]{4})"""
termination_regex = int8_regex
yprc_packet_regex = re.compile("!y"+
float_regex+ #Yaw
float_regex+ #Pitch
float_regex+ #Roll
float_regex+ #Compass Heading
View fizzbuzz.asm
bits 64
%macro to_string 1
%push to_string_ctx
%assign digit 1000000000
%rep 10
db ('0' + (%1 / digit) % 10)
%assign digit digit/10
%endrep
%pop
View gab.md
@auxiliary-character
auxiliary-character / solution.sh
Last active Oct 9, 2018
Longest 7 segment displayable word solution
View solution.sh
#!/bin/bash
cat /usr/share/dict/american-english | grep -i -e "^[^gkmqvwxz]*$" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2- | tail -n 1
View fizzbuzz.asm
global main
extern puts
extern sprintf
section .text
main:
push rbx
mov r15, 100
mov r14, 1
loop:
;print the loop variable into the buffer
View .vimrc
execute pathogen#infect()
filetype indent plugin on
syntax on
set nu
set backspace=indent,eol,start
set shiftwidth=4
set softtabstop=4
set expandtab
set shiftwidth=4
View RoboSight.java
import java.io.*;
import java.net.*;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.regex.*;
import java.util.HashMap;
import java.util.Scanner;
import java.util.Timer;
import java.util.TimerTask;
You can’t perform that action at this time.