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
fonts.styles { | |
colors [$WINDOWS||$LINUX] { | |
basefont "Roboto" | |
condensed "Roboto Condensed" | |
medium "Roboto Medium" | |
} | |
colors [$OSX] { | |
basefont "Roboto Regular" |
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: comp run | |
comp: | |
javac *.java | |
run: | |
java -cp .:+libs/* Main | |
clean: | |
rm *.class |
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: comp run | |
comp: | |
javac -cp "lib/*" -d bin src/HelloWorld.java | |
run: | |
# -XstartOnFirstThread is needed for macOS (tells the JVM to use thread 0) | |
java -XstartOnFirstThread -cp "bin:lib/*" HelloWorld |
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 | |
#prints a color text image of a tree | |
if [ "$1" = "-slow" ] | |
then | |
timer=0.1 | |
else | |
timer=0.0 | |
fi | |
echo -e " &&" | |
sleep $timer |
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 | |
# prints a color text image of a tree | |
echo -e " \033[0;32m&&" | |
echo -e " \033[0;32m&&&&&" | |
echo -e " \033[0;32m&&&\/& &&&" | |
echo -e " \033[0;32m&&\033[0;33m|,/ |/\033[0;32m& &&" | |
echo -e " \033[0;32m&&\033[0;33m/ / /_\033[0;32m& &&" | |
echo -e " \033[0;33m\ { |_____/_\033[0;32m&" | |
echo -e " \033[0;33m{ / / \033[0;32m&&&" | |
echo -e " \033[0;33m.\`. \\{___\________\/_\}" |
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
{ | |
"ad": { | |
"flag": "🇦🇩", | |
"name": "Andorra", | |
"dialCode": "+376" | |
}, | |
"ae": { | |
"flag": "🇦🇪", | |
"name": "United Arab Emirates", | |
"dialCode": "+971" |
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 Data.List | |
import Data.Fixed | |
import Graphics.Gloss | |
import Graphics.Gloss.Data.Color | |
import Graphics.Gloss.Data.Picture | |
import Graphics.Gloss.Data.ViewPort | |
type Vector3 = (Float, Float, Float) | |
type Model = [Vector3] |
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
<ul> | |
<li> | |
<label><input type="checkbox">Electronics</label> | |
<ul> | |
<li><label><input type="checkbox">Laptops</label></li> | |
<li><label><input type="checkbox">TVs</label></li> | |
<li> | |
<label><input type="checkbox">Electronics</label> | |
<ul> | |
<li><label><input type="checkbox">Laptops</label></li> |
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 "transition table" from the instructions: | |
CLOSED: APP_PASSIVE_OPEN -> LISTEN | |
CLOSED: APP_ACTIVE_OPEN -> SYN_SENT | |
LISTEN: RCV_SYN -> SYN_RCVD | |
LISTEN: APP_SEND -> SYN_SENT | |
LISTEN: APP_CLOSE -> CLOSED |