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
define armex | |
printf "EXEC_RETURN (LR):\n", | |
info registers $lr | |
if $lr & 0x4 == 0x4 | |
printf "Uses MSP 0x%x return.\n", $msp | |
set $armex_base = (char *) $msp | |
else | |
printf "Uses PSP 0x%x return.\n", $psp | |
set $armex_base = (char *) $psp | |
end |
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
// A _ B, where _ = +, -, *, /, AND, OR, =, ... | |
class Binop { | |
public: | |
enum Operation { | |
ADD = 0, | |
SUBTRACT = 1, | |
MUL = 2, | |
DIV = 3, | |
AND = 4, |
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 <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(int argc, char *argv[]) | |
{ | |
srand(time(0)); | |
// successes is the number of times the "smart" |
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 <string> | |
using namespace std; | |
string translate(string input, string translation) | |
{ | |
string output = "ABCDEF0123456789"; | |
for(int i=0; i<input.length(); i++) | |
{ | |
if(input[i] > '9') |
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 urllib | |
import android | |
import string | |
from HTMLParser import HTMLParser | |
class MLStripper(HTMLParser): | |
def __init__(self): | |
self.reset() | |
self.fed = [] | |
def handle_data(self, d): |
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
int gcd(int a, int b) | |
{ | |
return (a%b==0)?b:gcd(b,a%b); //Jacob | |
} |