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
/* Dump type ids for Units and Abils. SC2. | |
* | |
* Keep it simple: cl dump.cpp Version.lib | |
* May need to enable LAA if 32 bit. | |
*/ | |
#include <Windows.h> | |
#include <psapi.h> | |
#include <TlHelp32.h> | |
#include <stdint.h> |
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
int GenericSort(void **list, size_t length, compareFn compare) { | |
// Compare the list as ptrdiff_t's if no comparator is specified. | |
if (!compare) { | |
int basic_compare(void *a, void *b) { | |
int result = 0; | |
// Compare as signed | |
ptrdiff_t aL = (ptrdiff_t)a; | |
ptrdiff_t bL = (ptrdiff_t)b; | |
if (aL < bL) { |
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
package main | |
import ( | |
"crypto/tls" | |
"encoding/json" | |
"flag" | |
"fmt" | |
irc "github.com/fluffle/goirc/client" | |
"labix.org/v2/mgo" | |
"net/http" |
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; | |
using System.IO; | |
using System.Threading; | |
using UnityEngine; | |
public class OurMono : MonoBehaviour | |
{ | |
StreamWriter log; | |
Timer t; |
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
%pylab inline | |
import urllib2 | |
import json | |
json_api_test = urllib2.urlopen("http://api.ggtracker.com/api/v1/matches?game_type=1v1&map_name=Derelict%20Watcher%20TE&race=terran&replay=true&vs_race=zerg&paginate=true&average_league=4&limit=100").read() | |
json_api_result = json.loads(json_api_test) | |
json_api_results = json_api_result['collection'] | |
json_result_ids = [res['id'] for res in json_api_results] |
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
scoreBin = (items) -> | |
failure = 0 | |
color = {} | |
type = {} | |
pattern = {} | |
for item in items | |
color[item.color] or= 0 | |
type[item.type] or= 0 | |
pattern[item.pattern] or= 0 | |
color[item.color]++ |
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
do -> | |
sm2 = undefined | |
Object.defineProperty window, 'soundManager', | |
get: -> sm2 | |
set: (val) -> | |
sm2 = val | |
if sm2? | |
bDI = sm2.beginDelayedInit | |
sm2.beginDelayedInit = -> | |
sm2.preferFlash = false |
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
require('GlobalStrings') | |
-- generated from s_bonusStatStringTags | |
local bonusStats = { | |
[0] = "ITEM_MOD_MANA_SHORT", | |
[1] = "ITEM_MOD_HEALTH_SHORT", | |
[3] = "ITEM_MOD_AGILITY_SHORT", | |
[4] = "ITEM_MOD_STRENGTH_SHORT", | |
[5] = "ITEM_MOD_INTELLECT_SHORT", | |
[6] = "ITEM_MOD_SPIRIT_SHORT", |
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
{ | |
"enchantItems": [ | |
{ | |
"enchantID": "4720", | |
"itemID": "38679", | |
"spellID": "7418" | |
}, | |
{ | |
"enchantID": "41", | |
"itemID": "38766", |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"itemID": 2169, | |
"difficultyMask": 1, | |
"factionMask": 4294967295, | |
"encounterName": "Glubtok", | |
"instanceName": "Deadmines" | |
}, | |
{ | |
"itemID": 5195, |
OlderNewer