Skip to content

Instantly share code, notes, and snippets.

View beardedfoo's full-sized avatar

beardedfoo

  • Schuberg Philis
  • Netherlands
View GitHub Profile
#!/usr/bin/env python3
"""A hello world in python using argparse"""
import argparse
import sys
def parse_args():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('name', help='The name of the entity to be greeted')
p.add_argument('--emoji', action='store_true', default=False,
/*
* The Microsoft SideWinder Force Feedback 2 joystick is a force feedback capable joystick which
* sometimes can have issues holding center in non-force feedback enabled games. This is an application
* which implements a centering workaround through the use of the DirectInput force feedback API.
*
* TL;DR: Run this application in the background while playing non-force feedback games to ensure the
* SideWinder FFB2 joystick stays centered and maintains proper tension.
*/
#include <iostream>

Keybase proof

I hereby claim:

  • I am beardedfoo on github.
  • I am beardedfoo (https://keybase.io/beardedfoo) on keybase.
  • I have a public key ASCCmcDlcn-6agOtHzN6LX6knxC_qX7AEcpO6eSG4hDCJQo

To claim this, I am signing this object:

#!/usr/bin/env python2.7
"""An example CLI program in python"""
import argparse
import os
import sys
def parse_args():
p = argparse.ArgumentParser()
return p.parse_args()