Skip to content

Instantly share code, notes, and snippets.

@rastating
rastating / terminal.css
Created December 30, 2012 20:02
Terminal theme for yaircc
/*
<theme name="Terminal" id="a6b48d28-2623-4671-a37b-60e0a49eaec2">
<author website="http://www.intninety.co.uk/">intninety</author>
<description>A terminal theme consisting of high contrasting colours.</description>
</theme>
*/
body, tr, tbody, table {
font-family: monospace;
font-size: 10pt;
@rastating
rastating / test-template.html
Created January 15, 2013 23:54
A template that can be used to test themes created for yaircc.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style type="text/css">
span.smiley
{
display: inline-block;
width: 18px;
height: 18px;
background-repeat: no-repeat;
@rastating
rastating / gist:4699943
Created February 3, 2013 00:38
IE Registry
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones]
@=""
"SecuritySafe"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"2004"=dword:00000003
"2001"=dword:00000003
@=""
javascript:var criteria=prompt("What do you want to search for?","");window.location.href="http://k2b-bulk.ebay.co.uk/ws/eBayISAPI.dll?ListingConsole&searchSubmit=Search&lrowcount=1&matchCriteria=and&MfcISAPICommand=ListingConsole&currentpage=LCActive&searchValues="+encodeURIComponent(criteria)+"&srcFld_1=Title&srcVal_1=&goToPage=&searchField=ItemTitle&Status=All&Format=All&pageNumber=1&searchOpDd_1=CONTAINS&srcType=0&StoreCategory=-4&guest=1"
javascript:var criteria=prompt("What do you want to search for?","");window.location.href="http://k2b-bulk.ebay.co.uk/ws/eBayISAPI.dll?MfcISAPICommand=SalesRecordConsole&currentpage=SCSold&pageNumber=1&urlStack=5508|Period_Last122Days|searchField_ItemTitle|pageNumber_1|currentpage_SCSold|searchValues_ar5b93|&searchField=ItemTitle&searchValues="+encodeURIComponent(criteria)+"&StoreCategory=-4&Status=All&Period=Last122Days&searchSubmit=Search&goToPage="
@rastating
rastating / USNetflixHosts
Created November 27, 2013 22:04
A hosts file to use to access the US Netflix using the Unblock US service without using their DNS for all of your traffic.
# Hosts file to access US Netflix using Unblock US without their DNS.
67.216.222.61 movies.netflix.com
67.216.222.65 cbp-us.nccp.netflix.com
67.216.222.130 movies1.netflix.com
67.216.222.104 movies2.netflix.com
147.255.171.14 netflix.com
147.255.171.7 moviecontrol.netflix.com
69.197.181.166 api-global.netflix.com
67.216.222.83 api-us.netflix.com
147.255.227.2 api.netflix.com
public void SetDefaultCulture(CultureInfo culture)
{
Type type = typeof(CultureInfo);
try
{
type.InvokeMember("s_userDefaultCulture",
BindingFlags.SetField | BindingFlags.NonPublic | BindingFlags.Static,
null,
culture,
using System;
using System.Globalization;
using System.Reflection;
using System.Threading;
namespace DefaultCultureInfoExample
{
class Program
{
static void SetDefaultCulture(CultureInfo culture)
// If the player is coliding with the enemy turn the screen red
if (this.player.IsColliding(this.enemy))
{
GraphicsDevice.Clear(Color.Red);
}
// Draw the player to the screen
spriteBatch.Draw(this.player.Texture,
this.player.Position,
null,
// See http://blog.rastating.com/xna-per-pixel-collision-detection-on-rotated-objects/ for details on how to use this class
using System;
using Microsoft.Xna;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace rastating
{
/// <summary>