Skip to content

Instantly share code, notes, and snippets.

@lborg019
lborg019 / source.cpp
Created October 23, 2016 09:15
libusb steamcontroller (windows)
#include <iostream>
#include <libusb.h>
#include <cassert>
using namespace std;
#define RT 0x000001; //Right Trigger press
#define LT 0x000002; //Left Trigger press
#define RB 0x000004; //Right Bumper
#define LB 0x000008; //Left Bumper
#define Y 0x000010;
@lborg019
lborg019 / parser.py
Created May 30, 2016 16:13
Boilerplate regular expression parser for python
import re
# file to be read (replace "list.txt" with your file name
infile = open("list.txt", "r")
# file to write to
outfile = open("result.txt", "w")
# traverse the file
for line in infile:
@lborg019
lborg019 / README.md
Last active July 1, 2020 20:39 — forked from smileart/README.md
Fine tuning smileart's zsh agnoster theme:

lukezin's .zsh-theme

Improvements to smileart's agnoster theme mod:

  • Replaced special characters in the code (fixed bugged characters, currently works with powerline fonts)
  • Prompt is shorter, shows only the current directory
  • LS Colors match iTerm's Dark Solarized theme

to do:

  • Fix tab completion: tab completion should automatically work on special characters (such as [) right now you have to escape such characters for tab to complete it \[