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
// #include "GhoulTrainer.h" | |
#define AllocateBuffer(len) \ | |
new TCHAR[##len] | |
#ifndef Error | |
#define Error(func) \ | |
HandleError(TEXT(#func), TEXT(__FILE__), __LINE__) | |
#endif |
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
# | |
# by Kyle Van Berendonck | |
# kvanberendonck@gmail.com | |
# | |
from urllib2 import * | |
import sys | |
import json | |
import difflib |
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
-- | |
-- Things to do: | |
-- add missing types, find an acceptable way to render an invalid type (null?) | |
-- | |
-- Need the Data.Text library later, so make alias | |
import qualified Data.ByteString as BS | |
import Data.Serialize | |
import Data.Word |
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
/* | |
* ACPI UBIX fix for Toshiba Satellite L750D | |
* https://bbs.archlinux.org/viewtopic.php?id=152543 | |
* | |
* Symptoms: | |
* ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x0000000000000011) is beyond end of object (20120320/exoparg2-418) | |
* ACPI Error: Method parse/execution failed [\_SB_.BAT1.UBIX] (Node ffff880203e8a168), AE_AML_PACKAGE_LIMIT (20120320/psparse-536) | |
* ACPI Error: Method parse/execution failed [\_SB_.BAT1._BIX] (Node ffff880203e8a0f0), AE_AML_PACKAGE_LIMIT (20120320/psparse-536) | |
* ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX (20120320/battery-419) | |
* |
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
-- Description: A red-black tree implementation in Haskell | |
-- Author: Cedric Van Goethem | |
-- Version 1, 2013 | |
type Tree a = Node a | |
data Color = Red | Black deriving (Eq, Show) | |
data Node a = Node a Color (Node a) (Node a) | Nil deriving (Eq, Show) | |
tree :: (Ord a) => a -> Tree a | |
tree x = Node x Black Nil Nil |
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
/* | |
Semi-Generic CRC Bypass for MapleStory | |
Other uncredited authors for ideas/methods/concepts etc. | |
*/ | |
#include <Windows.h> | |
static LPVOID lpvImgStart, lpvImgEnd, lpvMemBackup; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
static char str_[] = "C programming is fun!", *buf_, tmp_; | |
void sort(char *src_, char *dst_, int n_) | |
{ | |
if (!src_[n_] || (n_ <= 1)) return; | |
if (dst_[n_] >= (tmp_ = dst_[n_ - 1])) return; |
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
#include <iostream> | |
template <typename T> | |
class singleton | |
{ | |
private: | |
static T* instance; | |
public: | |
static T* get() |
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 Data.Char | |
data Expr | |
= Nand Expr Expr | |
| And Expr Expr | |
| Or Expr Expr | |
| Not Expr | |
| Input Int | |
deriving (Eq) |
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
#include <stdio.h> | |
#if defined(__GNUC__) | |
#define unreachable() \ | |
__builtin_unreachable() | |
#define assertion(cond) \ | |
do \ | |
{ \ |
OlderNewer