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
<? | |
class Person { | |
protect $data = array( | |
'name' => 'The king', | |
'age' => 19 | |
); | |
function __get($attr) { | |
if (isset($this->data[$attr])) | |
return $this->data[$attr]; |
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
module Webrat #:nodoc: | |
class MechanizeSession < Session #:nodoc: | |
def mechanize | |
@mechanize ||= WWW::Mechanize.new | |
end | |
end | |
end |
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 | |
require_once 'Benchmark/Timer.php'; | |
class Benchmark { | |
var $iteration = 100; | |
function setup() { | |
} | |
final static function report() { |
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
6-Feb-09 | |
dotDefender Blocked Your Request | |
Please contact the site administrator, and provide the following Reference ID: | |
2E0B-BC5A-268A-02B1 | |
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
class Idol < ActiveRecord::Base | |
has_many :banners | |
has_many :pidols | |
has_and_belongs_to_many :filedatas | |
has_and_belongs_to_many :members | |
has_and_belongs_to_many :photogalleries | |
has_and_belongs_to_many :moviegalleries | |
def to_param | |
"#{id}-#{name.slugify}" |
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
<h1>{{ person.name }}</h1> | |
{% block content %} | |
<small>block:{{ block.name }}, level: {{ block.depth }} ?></small> | |
(i am {{ block.age }} years old) | |
{% endblock %} | |
<ul> | |
{% for hobby in person.hobbies %} | |
<li>{{ hobby|capitalize }}</li> | |
{% endfor %} | |
</ul> |
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
H2o hacking guide | |
argument parsing. | |
===================== | |
* variable name turns to ":variable" which uses ruby symbol style string to indicate if its a variable and to speed up context lookup | |
* arguments are seperated by comma | |
* anything looks like named argument(name: "peter", age: 18) will parse into a option style array | |
H2o_Parser::parseArguments("variable") |
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 | |
/** | |
* To implment tagging behavior to be able to plug into any data model in the system | |
* | |
* Requirements | |
* You are required to create "tags" table to hold all tag entries | |
* You are required to create a "[tableName]_tags" table for each object you | |
* want to tag. for example, to implement tags for pages u need this table | |
* pages_tags (page_id : int, tag_id) | |
* |
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
- <var class="parent parent dl casino"/> | |
- ![Centrebet casino][1] | |
- param1 | |
![Centrebet Games][2] | |
param 2 | |
param 3 |
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
- **The Largest European Poker Network** | |
- **Guaranteed US$15 Million won Every Month** | |
- **Trips to the Greatest Land Based Events** | |
- **Free $*600 to Get the Action Started** | |
### Join Today for our 100% MATCH DEPOSIT up to $600 ### | |
*Minimum deposit required and wagering restrictions apply. For more information read our [Terms and Conditions.][1] | |