Skip to content

Instantly share code, notes, and snippets.

View mueschm's full-sized avatar

Michael Muesch mueschm

  • Architect.io
  • Boston, MA
View GitHub Profile
interface MyList<T> {
void add(T element);
T get(int index);
}
class MyArrayList<T> implements MyList<T> {
private Object[] elements;
private int index;
MyArrayList() {
@mueschm
mueschm / gist:6780322
Created October 1, 2013 15:32
Load branches of git repo into seperate folders of website
contains() {
string="$1"
substring="$2"
if test "${string#*$substring}" != "$string"
then
return 0
else
return 1
fi
}
//##using C++ library##
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
//##using openCV library##
#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
//##using C++ library##
#include <iostream>
using namespace std;
#include <stdlib.h>
//##using openCV library##
#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
using namespace cv;
#include <windows.h>
#include <stdio.h>
#include "Detour\CDetour.h"
DWORD dwClientNode_SendChatAddress = 0x0082D560;
DWORD dwClientNode_ShowChatAddress = dwClientNode_SendChatAddress + 0x110;
PDWORD pClientNodeInstance;
CDetour ClientNode_SendChatDet;
class ESolver
{
public delegate double operationFunction(double[] input);
private List<Operation> operationDeclerations;
private List<Variable> variables;
/// <summary>
/// Default constructor
/// </summary>
import java.util.*;
public class SocialSecurities
{
public static void main (String args [])
{
String ssnum;
Scanner sc = new Scanner(System.in);
while(true)
{
System.out.print("Please enter your Social Security number, type quit or stop to exit");
//Check to see if the strings contain the same number of characters
//For time purposes we assume that the strings only contain capital letters
bool hasSameCharacters(String string1, String string2)
{
//Get the size of the strings once
int string1Size = string1.size();
int string2Size = string2.size();
//If the sizes are not equal than they
//do not contain the same characters
public class Controller
{
public class ControllerAction
{
public delegate void KeyPressedDelegateFunction();
private String name;
private Key key;
private KeyPressedDelegateFunction keyPressedFunction;
public ControllerAction(Key key, String name, KeyPressedDelegateFunction function)