View hw_template.tex
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
\documentclass[11pt]{article} | |
\usepackage{fancyhdr} | |
\usepackage{extramarks} | |
\usepackage{amsmath} | |
\usepackage{amsthm} | |
\usepackage{amsfonts} | |
\usepackage[utf8]{inputenc} | |
\usepackage{listings} | |
\usepackage{courier} |
View recursion_examples.scm
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
;; fact -- Returns the factorial of a given positive integer. | |
(define fact | |
(lambda (n) | |
(if (eq? n 0) 1 (* n (fact (- n 1)))))) | |
;; list-length - return length of a list. | |
(define list-length | |
(lambda (L) | |
(if (null? L) |
View lambda.scm
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
((lambda (lambda) (lambda lambda)) (lambda (lambda) lambda)) |
View parity.ss
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
(define odd? | |
(lambda (n) | |
(cond | |
[(zero? n) #f] | |
[else (even? (- n 1))]))) | |
(define even? | |
(lambda (n) | |
(cond | |
[(zero? n) #t] |
View SmartEnchant.py
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
# Smart Enchant - A MCEdit filter for batch editing enchantments on items | |
# Modified by Plastix | |
# Original Enchant Filter by SethBling | |
from pymclevel import MCSchematic | |
from pymclevel import TileEntity | |
from pymclevel import TAG_Compound | |
from pymclevel import TAG_Short | |
from pymclevel import TAG_Byte | |
from pymclevel import TAG_String |
View SmartEnchant.py
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
# Smart Enchant | |
# Modifed by Plastix 12/23/12 | |
# Original Enchant Filter by SethBling | |
from pymclevel import MCSchematic | |
from pymclevel import TileEntity | |
from pymclevel import TAG_Compound | |
from pymclevel import TAG_Short | |
from pymclevel import TAG_Byte | |
from pymclevel import TAG_String |
View Silhouette.py
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
# Silhouette.py - Casts a Silhouette of the map onto y=0 | |
# MCEdit Filter | |
# Made for use with PGM v2.0 Voidmatcher | |
# Made by khazhyk | |
import sys | |
inputs = ( | |
("Fill with","blocktype"), | |
) |
View name_checker.php
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
<?php | |
// Checks the availability of Minecraft usernames given a text file of names | |
$names = Array(); | |
$input = "./names.txt"; //Names to be checked (one per line) | |
$output= "./available_names.txt"; //Available names | |
$names = file($input, FILE_IGNORE_NEW_LINES); | |
if(file_exists($output)) file_put_contents($output, ""); | |
foreach( $names as $name ) { |