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 Home_Router extends Router_Template | |
{ | |
public static function getViewRoutes() | |
{ | |
return array('/^home$/i' => 'Home_View'); | |
} | |
public static function getEditRoutes() | |
{ |
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 Example_ACL | |
{ | |
public static function getActionValue($actionString) | |
{ | |
switch ($actionString) | |
{ | |
case 'none': | |
return 0; | |
break; |
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 | |
$spamChecker = new SpamChecker(); | |
$spamChecker->addRule('text', function($spam){ | |
if (strpos($spam, 'test') !== false) { | |
return true; | |
} | |
}); | |
echo "The following should be true" . PHP_EOL; | |
var_dump($spamChecker->isSpam('this is a test')); |
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 | |
$spamChecker = new SpamChecker(); | |
$spamChecker->addRule(function($spam){ | |
if (strpos($spam, 'test') !== false) { | |
return true; | |
} | |
}); | |
echo "The following should be true" . PHP_EOL; | |
var_dump($spamChecker->isSpam('this is a test')); |
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 | |
ini_set('display_errors', true); | |
error_reporting(E_ALL); | |
$options = array( | |
'http'=>array( | |
'method'=> "GET", | |
'header'=> "User-Agent: test\r\n" | |
) | |
); |
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
## Rare Trade Route #534 | |
Generated by [Elite: Dangerous Rare Trade Route Generator v1.0.0](https://github.com/cowboy/ed-rare-trade-route-generator) at 2015-01-11 18:50:05 -0600 | |
using data from [ED_RareGoods_SystemsDistance (10/01/15 - rev 1370)](https://docs.google.com/spreadsheets/d/1haUVaFIxFq5IPqZugJ8cfCEqBrZvFFzcA-uXB4pTfW4/edit?usp=sharing). | |
#### Warnings | |
* Suboptimal sell distance: Epsilon Indi -> Thrutis (128.84 Ly) | |
#### Route |
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
## Rare Trade Route #3157 | |
Generated by [Elite: Dangerous Rare Trade Route Generator v1.0.0](https://github.com/cowboy/ed-rare-trade-route-generator) at 2015-01-14 21:23:46 -0600 | |
using data from [ED_RareGoods_SystemsDistance (12/01/15 - rev 1372)](https://docs.google.com/spreadsheets/d/1haUVaFIxFq5IPqZugJ8cfCEqBrZvFFzcA-uXB4pTfW4/edit?usp=sharing). | |
#### Route | |
Jumps: 12, Distance: 769.46 Ly | |
1. Rapa Bao (49.45 Ly) |
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
require(['jquery', 'wdn'], function($, WDN) { | |
$(function() { | |
var $splashIntro = $('.law-intro'), | |
introMedia, | |
splashRevert = function() { | |
introMedia.pause(); | |
$splashIntro.removeClass('playing'); | |
return false; | |
}; |
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 is a work-around for twitter widgets adding a title attribute to the iframes they produce, which leads to a11y problems. | |
--> | |
<!-- Include the twitter widget js on every page --> | |
<script>window.twttr = (function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0], | |
t = window.twttr || {}; | |
if (d.getElementById(id)) return t; |
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
#main-page #pagetitle h1 { | |
font-size: 0; | |
width: 1px; | |
height: 1px; | |
display: inline-block; | |
overflow: hidden; | |
position: absolute!important; | |
border: 0!important; | |
padding: 0!important; | |
margin: 0!important; |
OlderNewer