Skip to content

Instantly share code, notes, and snippets.

Auxiliary-Character auxiliary-character

Block or report user

Report or block auxiliary-character

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 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;
View example.py
#!/usr/bin/env python3
import yaml
from pprint import pprint
yaml_code = """
Example:
name: "Example"
timestamp: 1500421023
nested:
- name: "Part 1"
View hack.py
#!/usr/bin/env python3
from networktables import NetworkTables
import urllib.request
import re
import time
from pprint import pprint
data_regex = re.compile("(\w+) = ([\d\.\-]+)")
def getTable():
with urllib.request.urlopen("http://10.40.9.13/data.html") as f:
View CorrectionSpeedController.java
package org.usfirst.frc.team4009.robot;
import edu.wpi.first.wpilibj.SpeedController;
class CorrectionSpeedController implements SpeedController {
SpeedController actualController;
double correctionFactor;
public CorrectionSpeedController(SpeedController controller){
actualController = controller;
}
You can’t perform that action at this time.