Skip to content

Instantly share code, notes, and snippets.

View stoic1979's full-sized avatar

Navjot Singh stoic1979

  • Hamilton, New Zealand
View GitHub Profile
@stoic1979
stoic1979 / pybrowser.py
Created March 31, 2017 08:44 — forked from kklimonda/pybrowser.py
A minimal Gtk+/Webkit based browser in Python
import sys
from gi.repository import Gtk, Gdk, WebKit
class BrowserTab(Gtk.VBox):
def __init__(self, *args, **kwargs):
super(BrowserTab, self).__init__(*args, **kwargs)
go_button = Gtk.Button("go to...")
go_button.connect("clicked", self._load_url)
self.url_bar = Gtk.Entry()
@stoic1979
stoic1979 / .bashrc
Created February 6, 2017 10:12
bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@stoic1979
stoic1979 / .vimrc
Created February 6, 2017 10:09
vimrc
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif