Skip to content

Instantly share code, notes, and snippets.

View dsibilly's full-sized avatar

Duane Sibilly dsibilly

View GitHub Profile
@dsibilly
dsibilly / 4e-xp.js
Created May 25, 2012 13:24
D&D 4th Edition Encounter Level Calculator
/**
* 4e-xp.js
* D&D 4th Edition Encounter Level Calculator
*
* Copyright (C) 2012 Duane Sibilly <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@dsibilly
dsibilly / imgur_downloader.py
Last active October 3, 2015 06:37
Threaded Imgur Album Download Script
#!/usr/bin/env python
# Imgur Album Downloader
# Version 20121015-01
#
# THIS SCRIPT NO LONGER WORKS AGAINST THE CURRENT IMGUR WEBSITE
# DO NOT USE! THIS GIST IS HERE FOR POSTERITY ONLY!
#
# Now with multithreading!
# Just paste the URL of an Imgur album/gallery/subdomain
# at the prompt, and away you go!
@dsibilly
dsibilly / Bcrypt.php
Created June 29, 2011 17:01
Simple PHP 5.3+ Bcrypt class adapted from phpass
<?php
/*
Adaptation by Marco Arment <[email protected]>.
Adapted from Portable PHP Password Hashing Framework (phpass) version 0.3:
http://www.openwall.com/phpass/
phpass was by Solar Designer <solar at openwall.com> in 2004-2006 and is in
the public domain. This adaptation is also in the public domain.
@dsibilly
dsibilly / NSString+UsefulShit.h
Created June 21, 2011 18:20
Objective-C category demonstration
//
// NSString+UsefulStuff.h
//
// Duane Sibilly <[email protected]>
// 6/21/11
// Copyright (c) 2011-2012 Duane Sibilly. All rights reserved.
#import <Foundation/Foundation.h>
// The use of the parenthesis in the interface declaration is what tells the
@dsibilly
dsibilly / xcode4_build.py
Created June 8, 2011 19:37
Unique Build Numbers for XCode 4
# XCode 4 auto-versioning script for Git
# Inspired by the work of Axel Andersson, Marcus S. Zarra and Matt Long
# http://valthonis.net/u/19
"""
NOTE: Due to its use of build environment variables, this
script will only work from inside XCode's build process!
"""
import os
@dsibilly
dsibilly / related_models.py
Created May 11, 2011 20:31
SQLAlchemy related models demo