Skip to content

Instantly share code, notes, and snippets.

View ejknapp's full-sized avatar

Eric Knapp ejknapp

View GitHub Profile
//In C:
//==============
// The C Function we need to call:
//
// OSStatus someFunctionForData (
// int *outType,
// const void **outData
// )
package java112.labs2;
import java.io.*;
import java.util.*;
/**
* @author Eric Knapp
* class MapDemo
*/
public class MapDemo {
@ejknapp
ejknapp / MapDemo.java
Created February 28, 2014 01:32
Map Demo for Advanced Java 2/27/2014
package java112.labs2;
import java.io.*;
import java.util.*;
/**
* @author Eric Knapp
* class MapDemo
*/
public class MapDemo {
@ejknapp
ejknapp / gist:8908835
Created February 10, 2014 01:34
This is a SuperAbbrevs snippet I will be using in my java classes.
package java112.$3;
/**
* @author <#=AUTHOR#>
* class $1
*/
public class ${1:name} {
public void run() {
$end
@ejknapp
ejknapp / OutputDemo.java
Created February 7, 2014 02:11
Output demo from first project
package java112.labs1;
import java.io.*;
/**
* @author Eric Knapp
* class OutputDemo
* TODO: comment
*/
public class OutputDemo {
@ejknapp
ejknapp / SetDemo.java
Created February 7, 2014 02:10
Set demo from week 4
package java112.labs1;
import java.io.*;
import java.util.*;
/**
* @author Eric Knapp
* class SetDemo
* TODO: comment
*/
@ejknapp
ejknapp / gist:8853221
Created February 6, 2014 21:52
Block syntax in C
http://nilsou.com/blog/2013/08/21/objective-c-blocks-syntax/
@ejknapp
ejknapp / gist:8812694
Created February 4, 2014 21:27
An Illustrated History of objc_msgSend
http://sealiesoftware.com/msg/index.html
@ejknapp
ejknapp / gist:8745780
Created January 31, 2014 23:59
The Set demo from 1/30/2014
package java112.labs1;
import java.io.*;
import java.util.*;
/**
* @author Eric Knapp
* class SetDemo
* TODO: comment
@ejknapp
ejknapp / gist:8720346
Created January 30, 2014 21:33
Loop demo
//
// main.c
// Loops
//
// Created by Eric Knapp on 1/30/14.
// Copyright (c) 2014 Eric Knapp. All rights reserved.
//
#include <stdio.h>