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
/***** | |
* | |
* CSC258, Fall 2013 | |
* Conway's Game of Life | |
* By: Spencer Elliott (999992539), Dean Britto (999895298) | |
* | |
*****/ | |
/** | |
* Main module to be instantiated in a project that uses a VGA controller |
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 java.io.*; | |
import java.util.ArrayList; | |
public class Main { | |
public static void main(String[] args) { | |
DiskLruCache diskLruCache = null; | |
try { | |
diskLruCache = DiskLruCache.open(new File("DiskLruCache"), 1, 2, 20 * 2^20); | |
} catch (IOException e) { |
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 junit.framework.Assert; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class DiskLruCacheTest { |
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 android.content.Context; | |
import android.test.AndroidTestCase; | |
import android.test.IsolatedContext; | |
import com.jakewharton.disklrucache.DiskLruCache; | |
import junit.framework.Assert; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; |
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 com.jakewharton.disklrucache.DiskLruCache; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
public class MyCache { | |
DiskLruCache mDiskLruCache; |
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
CREATE TABLE Team ( | |
country TEXT PRIMARY KEY, | |
coach TEXT UNIQUE | |
); | |
CREATE TABLE Player ( | |
PID SERIAL PRIMARY KEY, | |
fname TEXT, | |
lname TEXT, | |
position TEXT, |
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
# The first rule is what is executed when you run make with no arguments | |
# In this case it will build two programs. | |
all : packetize readstream | |
# The executable program depends on the .o files. | |
# The compile line links all the .o files together to create the executable. | |
packetize : packetize.o crc16.o list.o | |
gcc -Wall -g -o packetize packetize.o list.o crc16.o |
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
all : pfact | |
pfact : pfact.c | |
gcc -Wall -g -o pfact pfact.c -lm | |
clean : | |
rm *.o pfact |
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
all : validate checkpasswd | |
validate : validate.c | |
gcc -Wall -g -o validate validate.c | |
checkpasswd : checkpasswd.c | |
gcc -Wall -g -o checkpasswd checkpasswd.c | |
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
$ git push dokku | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n git-receive-pack 'scala-getting-started' ]] | |
+ export -n SSH_ORIGINAL_COMMAND | |
+ [[ git-receive-pack =~ config-* ]] | |
+ /usr/local/bin/dokku git-receive-pack ''\''scala-getting-started'\''' | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] |
OlderNewer