Skip to content

Instantly share code, notes, and snippets.

View deluxghost's full-sized avatar
🤷‍♂️
Huh?

deluxghost deluxghost

🤷‍♂️
Huh?
View GitHub Profile
@jrnewell
jrnewell / tango.reg
Last active August 29, 2015 14:08
Windows Console Colors
Windows Registry Editor Version 5.00
; Modified Tango Desktop Project color scheme for windows console
; See : http://en.wikipedia.org/wiki/Tango_Desktop_Project#Palette
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\Console]
; BLACK DGRAY
"ColorTable00"=dword:00222222
"ColorTable08"=dword:00454545
; BLUE LBLUE
@davispuh
davispuh / steam_console_params.txt
Last active May 31, 2024 01:51
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@JmPotato
JmPotato / Login.cs
Last active December 20, 2015 23:08
Minecraft 正版验证
try
{
label7.Text = "登录中...";
string url = "https://login.minecraft.net/?user=" + Program.username + "&password=" + password + "&version=13";
WebClient client = new WebClient();
Stream data = client.OpenRead(url);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
Console.WriteLine(s);
data.Close();
@technillogue
technillogue / calc.py
Created June 28, 2013 18:53
A more complicated recursive python calculator
from collections import OrderedDict
#reverse order of operations
#I didn't have to use an OrderedDict, but it's cute
operations = OrderedDict([
("+", lambda x, y: x + y),
("-", lambda x, y: x - y),
("/", lambda x, y: x / y),
("*", lambda x, y: x * y),
("^", lambda x, y: x ^ y)