Skip to content

Instantly share code, notes, and snippets.

call pathogen#infect('~/src/vim/bundle')
syntax on
filetype plugin indent on
set expandtab
set shiftwidth=4
set tabstop=4
set smarttab
set ai "Auto indent
@wesrog
wesrog / gitconfig
Created September 16, 2011 03:14
gitconfig
[user]
email = [email protected]
name = Wes Rogers
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
@wesrog
wesrog / gvimrc
Created September 15, 2011 18:57
gvimrc
set guifont=Inconsolata:h20
set guioptions-=T
colorscheme solarized
set columns=105
set lines=49
"set fuoptions=maxvert,maxhorz
"set transparency=5
@wesrog
wesrog / vimrc
Created September 15, 2011 18:57
vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
syntax on
set expandtab
set shiftwidth=4
{
"resp":{
"status":true,
"search":{
"searchresults":{
"numResults":"313",
"start":"1",
"end":"20",
"results":[
{
{
"resp":{
"status":true,
"version":"2.0",
"label":{
"images":[
{
"width":600,
"uri150":"/image/L-150-5-1136662517.jpeg",
"type":"primary",
{
"resp":{
"status":true,
"version":"2.0",
"master":{
"styles":[
"Techno",
"IDM",
"Ambient"
],
{
"resp":{
"status":true,
"version":"2.0",
"artist":{
"namevariations":[
"A-F-X Twin",
"A.F.X.",
"A.Twin",
"AFX",
{
"resp":{
"status":true,
"release":{
"status":"Accepted",
"styles":[
"Deep House"
],
"genres":[
"Electronic"
@wesrog
wesrog / old_discogs_api_example.py
Created December 15, 2010 21:43
Simple Discogs Python API Client
import urllib2, gzip, cStringIO
request = urllib2.Request('http://www.discogs.com/release/123?f=xml&api_key=111')
request.add_header('Accept-Encoding', 'gzip')
request.add_header('User-Agent', 'MyDiscogsClient/1.0 +http://mydiscogsclient.org')
response = urllib2.urlopen(request)
data = response.read()
unzipped_data = gzip.GzipFile(fileobj = cStringIO.StringIO(data)).read()