This file contains hidden or 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
/** | |
* http://gatherer.wizards.com/Pages/Search/Default.aspx?sort=cn+|rarity+&action=advanced&output=checklist&set=%20[%22Dominaria%22]&type=%20![%22Land%22]%20![%22Planeswalker%22] | |
*/ | |
(function(rows){ | |
var row, info, output = []; | |
var countMap = { | |
C: 3, | |
U: 2, | |
R: 1, | |
M: 1 |
This file contains hidden or 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
.highlight { | |
padding:1em; | |
background-color:#272820; | |
color:#F8F8F2; | |
font-family: "Droid Sans Mono",monospace; | |
} | |
.highlight .cp { color: #E77E7E; } | |
.highlight .sd, .highlight .c1 { color:#AAA; } | |
.highlight .k { color :#7CB7F1; } |
This file contains hidden or 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 defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* A base Controller class. | |
* | |
* @author Dave Widmer <[email protected]> | |
*/ | |
class Controller extends Kohana_Controller | |
{ | |
/** |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="" default="setup" basedir="."> | |
<!-- Application setup --> | |
<target name="setup"> | |
<!-- Initialize git repo --> | |
<exec executable="git" passthru="true" checkreturn="true" escape="false"> | |
<arg value="init" /> | |
</exec> | |
<!-- Make the needed directories for the application --> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>CSS Testing Page</title> | |
</head> | |
<body> | |
<h1>Heading 1</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris nec | |
tincidunt neque. Aenean augue elit, blandit congue vehicula sit amet, | |
condimentum id lorem. Aliquam malesuada aliquam eros ut pulvinar. |
This file contains hidden or 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 | |
rsync -rvzu ./ USER@SERVER:PATH/ --exclude '/.git*' --exclude '/deploy' |
This file contains hidden or 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 | |
# Setup the git rep | |
git init | |
# Make the needed directories for the application | |
mkdir -p public/{css,images,js} | |
mkdir -p classes/{controller,model} | |
mkdir -p {config,views,cache,logs} |
This file contains hidden or 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 defined('SYSPATH') or die('No direct script access.'); | |
class Request_Client_Internal extends Kohana_Request_Client_Internal | |
{ | |
public function execute_request(Request $request) | |
{ | |
$this->_action_prefix = strtolower($request->method()); | |
return parent::execute_request($request); | |
} | |
} |
This file contains hidden or 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 search(){ grep -RnisI "$@" *; } |
This file contains hidden or 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 defined('ARID') or die('Please enable the Arid plugin!'); | |
// Get the page information | |
$page = new Page(get_body_class()); | |
// Get the template ready | |
$template = View::factory('template'); | |
$template->set(array( | |
// Title |
NewerOlder