Skip to content

Instantly share code, notes, and snippets.

@Painted-Fox
Painted-Fox / vscmd.bat
Created December 17, 2015 13:54
Give you the Visual Studio command prompt in your current prompt.
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
@Painted-Fox
Painted-Fox / Split.py
Created November 2, 2015 19:52
Basic script for splitting a sprite image up.
"""Basic script for splitting a sprite image up."""
import os
import os.path
from PIL import Image
from PIL import ImageDraw
ICON_SIZE = 64
@Painted-Fox
Painted-Fox / timekeep.py
Last active March 15, 2016 19:39
Simple script to display time tracking stored in a SQLite database.
'''View a simple timesheet kept in sqlite'''
from __future__ import division # Ensure division is floating
import sqlite3
import time
from datetime import date, timedelta
DB_PATH = 'db.sqlite'
class TimeEntry:
@Painted-Fox
Painted-Fox / run.ps1
Last active October 13, 2015 13:22
A GAC solution for fixing: Could not load file or assembly System.Net.Http
# This requires admin privilges.
#
# Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
#
# Download and install: ASP.NET MVC 4 for Visual Studio 2010 SP1 and Visual Web Developer 2010 SP1
# Link: http://www.microsoft.com/en-us/download/details.aspx?id=30683
# Change into the directory where gacutil for .NET 4.5 is located.
cd C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools