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
# USAGE INSTRUCTIONS | |
# It's an interactive shell, where you have the following options... | |
# - Just type in an assembly instruction in Intel syntax, and it'll spit out the bytecode | |
# - Change the syntax to AT&T with the att command | |
# - Change the syntax back to Intel with the intel command | |
# - Quit with the q command | |
import os | |
import sys | |
import tempfile | |
import subprocess |
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 "EssayScrambler.h" | |
using namespace std; | |
EssayScrambler::EssayScrambler(const string &essayText) : | |
essayText(essayText) | |
{ | |
parseText(); | |
} |
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
// | |
// Student.cpp | |
// StudentInformationAnalyzer | |
// | |
// Created by Adam Spindler on 1/4/14. | |
// Copyright (c) 2014 Adam Spindler. All rights reserved. | |
// | |
#include "Student.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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned long DWORD; | |
typedef unsigned char BYTE; | |
typedef struct | |
{ | |
DWORD magic; // 0x4D433032, ASCII = "MC02" | |
DWORD fileLength; |
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 scala.util.Random | |
import scala.io.StdIn | |
object BlackJack extends App { | |
case class InvalidCardValueException(value: Int) extends Exception(s"Invalid card value of $value") | |
sealed abstract class Suit | |
case object Spades extends Suit | |
case object Clubs extends Suit |
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
{ | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": ["<C-j>"], | |
"after": ["j", "j", "j", "j"] | |
}, | |
{ | |
"before": ["<C-k>"], | |
"after": ["k", "k", "k", "k"] | |
}, |
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 definition for Monster | |
*/ | |
function Monster(name) { | |
this.health = 1000; | |
this.attack = 100; | |
this.name = name; | |
} | |
Monster.prototype.attack = function(other) { |
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 json | |
import requests | |
def find_loko(street_address): | |
request_params = { | |
'action': 'fourLoko/findProduct', | |
'address': street_address | |
} |
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
// | |
// main.swift | |
// FootballScores | |
// | |
// Created by Adam Spindler on 9/15/16. | |
// Copyright © 2016 Expetelek. All rights reserved. | |
// | |
import Foundation |
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 <UIKit/UIKit.h> | |
@interface MAAppDelegate | |
@property (nonatomic,retain) UIWindow * window; | |
-(void)applicationDidFinishLaunching:(id)arg1; | |
@end | |
%hook MAAppDelegate |
NewerOlder