This file contains hidden or 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 hidden or 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
# | |
# Makefile for Project | |
# | |
# | |
# Tags: | |
# ===== | |
# | |
# Certain tags are used in comments to assist in indexing common issues: | |
# - TODO to indicate planned enhancements. | |
# - FIXME to mark potential problematic code that requires special |
This file contains hidden or 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
var TWEEN = TWEEN || ( function () { | |
var _tweens = []; | |
return { | |
REVISION: '6', | |
getAll: function () { |
This file contains hidden or 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
function Employee(name, id, level) { | |
"use strict"; | |
this.data = {}; | |
this.data.title = name; | |
this.data.attr = { | |
"class" : "tree-employee", | |
}; | |
this.data.icon = "/img/employee_by_id/" + id + ".png"; | |
this.metadata = { |
This file contains hidden or 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
function Employee(name, id, level) { | |
"use strict"; | |
this.data = {}; | |
this.data.title = name; | |
this.data.attr = { | |
class : "tree-employee", | |
}; | |
this.data.icon = "/img/employee_by_id/" + id + ".png"; | |
this.metadata = {}; |
This file contains hidden or 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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <set> | |
using namespace std; | |
set<vector<int> > answers; | |
int answers_count = 0; | |
This file contains hidden or 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
var socket = null; | |
$(function() { | |
socket = io.connect(); | |
socket.on('message', function(data) { | |
receiveBinary(data); | |
}); | |
setTimeout(sendBinary, 1000); | |
}); |
This file contains hidden or 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
console.log('Running "'+job.data.title+'"'); | |
var s = progman.spawn('java', ['-Xmx512M', '-Xms512M', '-jar', 'minecraft_server.jar', 'nogui'], {cwd: 'defaultServer'}); | |
var hadWarning = false; | |
s.stdout.on('data', function(data) { | |
data = data.toString().split('\n'); | |
for(var i = 0; i < splitData.length; i++) | |
if(data[i] && data[i] != "\n") | |
job.log(splitData[i].replace(/\n$/, '')); |
This file contains hidden or 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 sys | |
def strxor(a, b): # xor two strings of different lengths | |
if len(a) > len(b): | |
return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a[:len(b)], b)]) | |
else: | |
return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b[:len(a)])]) | |
def encrypt(key, msg): | |
c = strxor(key, msg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer