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
package LinkedListA0; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
public class LinkedListImplTest { | |
@Test | |
public void clearEasy() { |
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
public class ArrayStack<T> { | |
private T[] array; | |
private int top = -1; | |
private static final int MAX_SIZE = 1000000; | |
public ArrayStack() { | |
array = (T[])(new Object[MAX_SIZE]);//'cause generics | |
} |
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: | |
$(MAKE) $(shell ./targets.sh) | |
one: | |
@echo one | |
two: | |
@echo two |
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
#! /bin/bash | |
# stricter bash | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -euo pipefail | |
# variables | |
STRINGA_TROVARE='curl' | |
CARTELLA_SYM_LINK=trovata_"$STRINGA_TROVARE"/ | |
CARTELLA_OUTPUT='/home/nethogs/nethogs_log' |
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
[info] Loading project definition from /Users/Knoble/loner/project | |
[info] Loading settings for project root from build.sbt ... | |
[info] Set current project to loner (in build file:/Users/Knoble/loner/) | |
[info] Set current project to ebnf (in build file:/Users/Knoble/loner/) | |
[info] Running org.benknoble.ebnf.Main | |
[error] (run-main-0) java.lang.StackOverflowError | |
[error] java.lang.StackOverflowError | |
[error] at java.util.regex.Pattern.compile(Pattern.java:1673) | |
[error] at java.util.regex.Pattern.<init>(Pattern.java:1351) | |
[error] at java.util.regex.Pattern.compile(Pattern.java:1028) |
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
// PA2 pass new expr | |
class A { | |
int[] is; | |
int x; | |
// uncomment to test hiding | |
// int x; | |
int x() { return 0 ; } | |
A alpha; |
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
# set echo | |
if (-x $HOME/.linuxbrew/bin/bash) then | |
if ($?prompt) then | |
setenv PATH ~/.linuxbrew/bin:$PATH | |
setenv SHELL $HOME/.linuxbrew/bin/bash | |
exec $SHELL -l | |
endif | |
endif |



OlderNewer