This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
from collections import namedtuple | |
Column = namedtuple('Column', 'start end') | |
with open('assets/minecraft/font/glyph_sizes.bin', 'rb') as fin: | |
sizes = [Column( | |
b >> 4, | |
b & 0x0F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 x Intel Core i7 4770K Unlocked Quad Core 3.5GHZ Processor LGA1150 Haswell 8MB Cache Retail | |
1 x Corsair Cooling Hydro Series H110 High Performance CPU Cooler LGA1150 1155 1156 1366 2011 FM1 FM2 | |
1 x ASUS Maximus VI Extreme ATX LGA1150 Z87 DDR3 SATA3 USB3.0 DVI HDMI Motherboard | |
2 x Corsair Dominator Platinum 16GB 2X8GB DDR3-1866 240PIN C9 DIMM 1.5V Dual Channel Memory Kit | |
2 x ASUS GeForce GTX 770 1110MHZ 2GB 7010MHZ GDDR5 DVI HDMI PCI-E Video Card | |
1 x Corsair Carbide Series Air 540 High Airflow Cube Case ATX Window 2X5.25 2X3.5INT USB3.0 No PS | |
1 x Corsair AX1200I 1200W Digital ATX 12V 80 Plus Platinum Modular Power Supply 140mm Fan | |
2 x Bitfenix BFA-ACL-30OK15-RP Alchemy LED Connect Lit 30CM 15 LEDs - Orange | |
2 x Seagate Barracuda 2TB 7200RPM SATA3 64MB Cache 3.5in Internal Hard Drive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Author: | |
// Tyler Kenendy <tk@tkte.ch> | |
// | |
// Copyright (c) 2010, Tyler Kennedy | |
// | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Table of types for packet definitions as well as their size | |
smp_fields = { | |
# Standard types | |
'byte' : ['b', 1], | |
'bool' : ['?', 1], | |
'short' : ['h', 2], | |
'int' : ['i', 4], | |
'float' : ['f', 4], | |
'double' : ['d', 8], | |
'long' : ['q', 8], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Auth(object): | |
"""Provides an interface to services provided by minecraft.net""" | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
self.launcher_ver = 999999999 | |
def _get_version(self): | |
from urllib import urlopen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Auth(object): | |
"""Provides an interface to services provided by minecraft.net""" | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
self.launcher_ver = 999999999 | |
def _get_version(self): | |
from urllib import urlopen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block body %} | |
<h1>{{ msg }}</h1> | |
<p>{{ _("Go") }} <a href="{{ link }}">{{ label }}.</a></p> | |
{% end %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Client::io_callback (ev::io &watcher, int revents) { | |
// Size to expand the buffer on each run | |
static const short buffer_run = 1024; | |
// Data to read | |
if (revents & ev::READ) { | |
// Remember the size of the vector before we change it | |
int old_size = _read_buffer.size(); | |
// Expand the vector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace test | |
{ | |
class MainClass | |
{ | |
struct h4x { | |
// Fixed arrays can only be properties of structs | |
unsafe public fixed ushort test[512]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tyler@dedi1-server:~/pymy$ ./pymy | |
[1290720172][client] Latest version reported as [1290701545000] by minecraft.net | |
[1290720172][client] There is a new version of the client available. Downloading... | |
[1290720174][client] Client downloaded, temporarily stored in /tmp/tmpYmCOUp.jar | |
[1290720174][client] Jar file has [592] children and is [1101006kb]. | |
[1290720174][client] Extracting jar contents to [/tmp/tmpfxFwHy/client_jar] | |
[1290720174][client] Decompiling... | |
[1290720174][client] Scanning... | |
[1290720174][client] [13] of [592] detected. | |
[1290720174][client] Cleaning up temporary client files... |
OlderNewer