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
[user] | |
name = Your Name | |
email = [email protected] | |
[core] | |
autocrlf = false | |
[alias] | |
st = status -sb | |
ci = commit |
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 { | |
margin: 20px auto; | |
width: 500px; | |
padding: 0 | |
list-style: none; | |
} | |
ul li { | |
float: left; | |
} |
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
/** | |
* Sudoku solver. Solves sudoku puzzles | |
* recursively using brute-force backtracking. | |
* | |
* The given puzzle should be an array of integer values | |
* where the '0' value represents an unsolved cell in the | |
* puzzel. The returned puzzel will be in the same format | |
* | |
* @param {Array} puzzle The partially solved puzzel | |
* @param {Integer} index The current cell to solve |
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 | |
echo ' <link href="common/style.css" rel="stylesheet" type="text/css" />'; | |
echo "<body onLoad='document.getElementById('song').select();'>"; | |
//create a PDO object to interface with the database | |
try { | |
$dbh = new PDO('mysql:localhost:3306', 'root', ''); | |
} | |
catch (PDOException $e) { | |
echo 'Connection failed: ' . $e->getMessage(); |
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 | |
require('File.Class.php'); | |
Class lotto{ | |
public function init(){ | |
$dbName = "lotto"; | |
try { | |
$dbh = new PDO('mysql:localhost:3306', 'root', ''); |
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 | |
foreach ($games as $game) | |
{ | |
// The default values array.. all empty | |
$default = array_combine($games, array_fill(0, length($games), '-')); | |
try | |
{ | |
$sth = $dbh->prepare("SELECT * FROM $game ORDER BY date $sort"); |
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
# yuml.me diagram makefile | |
# generate the class diagram images as pngs | |
# | |
all: UsecaseDiagram/diagram.txt.png Iteration1/ClassDiagram/diagram.txt.png Iteration2/ClassDiagram/diagram.txt.png Iteration3/ClassDiagram/diagram.txt.png | |
clean: | |
rm Iteration1/ClassDiagram/diagram.txt.png | |
rm Iteration2/ClassDiagram/diagram.txt.png | |
rm Iteration3/ClassDiagram/diagram.txt.png |
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
/** | |
Inner class to handle different sorting algorithms | |
*/ | |
private class Sort { | |
private int data[]; | |
private int size; | |
/** | |
Constructor |
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
app = proc do |env| | |
[200, { "Content-Type" => "text/html" }, ["hello <b>world</b>"]] | |
end | |
run app |
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 dd.h1x.com | |
ServerAdmin [email protected] | |
DocumentRoot /var/www | |
RewriteEngine on | |
RewriteLog rewrite.log | |
RewriteLogLevel 9 |
OlderNewer