Skip to content

Instantly share code, notes, and snippets.

@benkant
benkant / like_totally.py
Created November 16, 2010 12:41
Solution to Problem 10 of Project Euler... in Like, Python
ohai so uh like totally import math bro
anyways like result = 0 yeah
right test_number actually = 0
friggin for test_number totally in ma range(0, 2000000):
if teh test_number <= 1 shiiit:
lol is_prime = False bro
so elif test_number is actually 2 wicked:
bro is_prime = hella True
@holman
holman / gemspec-usage.md
Created February 12, 2012 07:02
test/spec/mini

Just install this in your apps like so:

gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'

@justinjones
justinjones / desktop-switcher.scpt
Created May 31, 2012 02:26
AppleScript for setting your desktop to an image from Desktoppr
-- Usage: osascript /path/to/desktop-switcher.scpt
-- Requires: "JSON Helper" from the mac app store (free)
-- Downloads a random wallpaper from desktoppr.co and sets it to your desktop wallpaper
-- Use at your own risk.
-- creates a wallpapers folder in downloads directory and delete anything in it (from previous runs)
set wallpapersFolder to POSIX path of (path to downloads folder as string) & "wallpapers"
do shell script "mkdir -p " & wallpapersFolder
do shell script "rm -f " & wallpapersFolder & "/*.wallpaper"