Skip to content

Instantly share code, notes, and snippets.

View patito's full-sized avatar
🎯
Focusing

Paulo Leonardo Benatto patito

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am patito on github.
  • I am benatto (https://keybase.io/benatto) on keybase.
  • I have a public key ASArIxp9jv98UDtsqJHH33YBD-DTLwg1NaX3diJk1gKkCAo

To claim this, I am signing this object:

@patito
patito / menu_launcher.py
Created January 28, 2017 17:41 — forked from abishur/menu_launcher.py
A simple menu system using python for the Terminal (Framebufer)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Topmenu and the submenus are based of the example found at this location http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
# The rest of the work was done by Matthew Bennett and he requests you keep these two mentions when you reuse the code :-)
# Basic code refactoring by Andrew Scheller
from time import sleep
import curses, os #curses is the interface for capturing key presses on the menu, os launches the files
screen = curses.initscr() #initializes a new window for capturing key presses
curses.noecho() # Disables automatic echoing of key presses (prevents program from input each key twice)
@patito
patito / vimrc
Created July 22, 2016 14:39 — forked from simonhayward/vimrc
vimrc
" filetype plugin on
" filetype indent on
" Pathogen load
filetype off
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
syntax on
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start