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
VyMessage* readSSLMessage(VySSL* ssl)
{
char* message = malloc(sizeof(char));
char* buffer = malloc(sizeof(char)*1024);
int readSize;
int i;
while((readSize = SSL_read(ssl->ssl, buffer, sizeof(buffer))) >= 1)
{
char* tempMessage = message;
SSL Listening Thread Launched
Window thread launched.
Pressed login.
:CyDrive
:Welcome
+ Unique ID: d812471e-1973-427f-8a24-c8a46e29dfef� - + Sending SSL message: [Login] + [CyDrive~Welcome]
- Received SSL message: [Login] - [Accepted]
Client is Accepted
+ Unique ID: d812471e-1973-427f-8a24-c8a46e29dfef - + Sending TCP message: [Query] + [id]
- Received TCP message: [ServerID] - [37adb483-8147-4b0d-86b1-d14e5d4f8275]
VyMessage* parseNewMessage(unsigned char* data)
{
VyMessage* message = malloc(sizeof(VyMessage));
int offset = 2;
char* uuid = malloc((sizeof(char)*UUID_SIZE));
int i;
for(i = 0;i < UUID_SIZE;i++)
*(uuid+i) = *(data+i+offset);
message->senderID = uuid;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class BF {
private interface Visitor
{
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class BF {
private interface Visitor
{
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)
//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
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");
class ESolver
{
public delegate double operationFunction(double[] input);
private List<Operation> operationDeclerations;
private List<Variable> variables;
/// <summary>
/// Default constructor
/// </summary>
#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;