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
*.svg | |
*.txt | |
*.gif |
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
############### | |
# $ . # | |
# ### . # | |
# # ##### # | |
# # ####+$ #$ # | |
# # # # | |
# ########## # | |
# # | |
############### |
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
rect |
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
;;; Commentary: | |
;; * r -- rock | |
;; * p -- paper | |
;; * s -- scissors | |
;; * e -- empty | |
;; References: | |
;; * http://games.thomashunter.name/tictactoe/ | |
;; * http://www.reddit.com/r/gamedev/comments/10smgz/ |
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
function Minefield(width, height, mines) { | |
this.width = width; | |
this.height = height; | |
this.grid = Minefield.make2dArray(width, height, 0); | |
this.seen = Minefield.make2dArray(width, height, false); | |
this.marked = Minefield.make2dArray(width, height, false); | |
var rand = function(n) { | |
return Math.floor(Math.random() * n); | |
}; | |
while(mines > 0) { |
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
*.o | |
rpsls | |
*.db |
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
CFLAGS = -std=c99 -Wall -g3 | |
main : main.o sstack.o | |
main.o : main.c sstack.h | |
sstack.o : sstack.c sstack.h dlist.h | |
run : main | |
./$^ |
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
CFLAGS = -std=c99 -Wall | |
main : main.o | |
.PHONY : test clean | |
test : main | |
./$^ "*regex*" "*vtable*" < main.c | |
clean : |
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
;;; with-alist-access.el --- a better alist macro | |
;; This is free and unencumbered software released into the public domain. | |
;;; Commentary: | |
;; Usage example: | |
;; (let ((student '((id . 1332412) | |
;; (name . ((first . "Student") |