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 | |
/* * **************************************************************************** | |
* File uploader script. | |
* @author jsrn | |
* | |
* <form action="uploader.php" method="POST"> | |
* <input type="file" name="file"> | |
* <input type="submit" value="Upload"> | |
* </form> |
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 random; | |
print "Usage:"; | |
print "[N]d[M]"; | |
print "where N is the number of dice and M is the size of the die."; | |
while 1: | |
try: | |
a = raw_input("Roll: "); | |
inp = a.split('d'); |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"fade_fold_buttons": false, | |
"font_face": "Consolas", | |
"font_size": 13, | |
"highlight_line": true, | |
"ignored_packages": |
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
unpieced | |
superobedient | |
nonsacrificing | |
spikedace | |
outdare | |
superirritability | |
trainman | |
prevocalically | |
phonetician | |
paradrop |
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
# offset to start row number from - probably set it absurdly high to avoid conflicts | |
count = 200 | |
baseheight = 552 # y coord of the first row | |
height_inc = 283 # default field height | |
num_rows = 30 # duh | |
row = 1 # row var | |
# Given the important details, returns a properly formatted Control element | |
def format_text_field( name, width, x ): | |
global count, row |
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
#!/usr/bin/env ruby | |
brainfuck = File.open("helloworld.bf", "rb").read | |
ascii_art = File.open("animaniacs.art", "rb").read | |
if brainfuck.length > ascii_art.gsub(" ","").length | |
abort "The supplied brainfuck will not fit inside the ASCII art." | |
end |
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
#!/usr/bin/env ruby | |
def print_block | |
puts "\e[H\e[2J" | |
chars = "ABCDEFGHIJKLMNOPQRSTUVQXYZabcdefghijklmnopqrstuvqxyz0123456789#" | |
chars = chars.split("") | |
(1..20).each do |y| | |
(1..60).each do |x| | |
print chars.sample |
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
class Flowers | |
require "core/player.rb" | |
def initialize | |
print_banner | |
set_up_game | |
enter_game_loop | |
end |
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
<VirtualHost *:80> | |
ServerName webconstructionmanager | |
DocumentRoot /var/www/webconstructionmanager/public/ | |
<Directory /var/www/webconstructionmanager/public> | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |
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 | |
class FormHelper { | |
public static function input($name, $placeholder, $value=null) { | |
echo '<input id="' . $name . '" name="' . $name . '" | |
placeholder="' . $placeholder . '" value="' . htmlentities($value) . '">'; | |
} | |
public static function labelAndInput($name, $label, $value=null) { |
OlderNewer