Skip to content

Instantly share code, notes, and snippets.

View brantb's full-sized avatar

Brant Bobby brantb

View GitHub Profile
@brantb
brantb / interfacelift.py
Last active October 4, 2019 08:57
Crawls interfacelift.com and downloads wallpapers. Not written by me.
#!/usr/bin/env python
import os, urllib2, re, sys, commands, random, time
# -- Changable Variables
url = 'http://interfacelift.com/wallpaper/downloads/date/widescreen/2560x1440/'
directory = '/Users/brant/Pictures/Wallpaper/InterfaceLift\ 2560x1440/'
stoponfind = '1' # Set to 0 to download all files even if the file exists and 1 to stop when it finds where it left off
wgetpath = 'wget' #Default on linux systems /usr/local/bin/wget on freebsd
# -- Should not need to edit below here unless something stops working --
<?xml version="1.0" encoding="UTF-8"?>
<variants xmlns:xlink="http://www.w3.org/1999/xlink" xlink:base="" query-time="2011-11-09T19:40:48">
<variant xlink:href="variants/78-0-C">
<key>78-0-C</key>
<name>Crosstown West to University of Manitoba via Cambridge</name>
<description/>
<destinations>
<destination>
<name> University of Manitoba</name>
<description/>
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
if has("mouse")
set mouse=a
set mousehide
endif
if has("gui_win32")
source $VIMRUNTIME/mswin.vim
set guifont=Consolas:h10:cANSI
@brantb
brantb / CSharp.cs
Created April 19, 2011 17:25
C# syntax highlighting sample
using System; // R# Namespace Identifier
using System.Dynamic;
using System.Linq; // R# Dead code
using System.Xml.XPath;
// Disable various dead code warnings
#pragma warning disable 168
#pragma warning disable 219
// ReSharper disable RedundantAssignment
// ReSharper disable SuggestUseVarKeywordEvident
@brantb
brantb / flac2mp3
Created March 18, 2011 22:05 — forked from mxcl/flac2mp3.md
#!/usr/bin/ruby
# http://gist.github.com/gists/876936
filename=ARGV[0]
abort "Usage: flac2mp3 FLACFILE" if filename.nil?
`metaflac --export-tags-to=- "#{filename}"`.each_line do |s|
v=s.strip.split '=', 2
v[0].upcase!
v[1].gsub! '"', '\"'