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 | |
Validator::add('uniqueFieldForClient', function($value, $format = null, $options = array()) { | |
$class = $options['class']; | |
$field = $options['field']; | |
$conditions = array($field => $value); | |
if (isset($options['values']['id'])) { | |
$conditions[] = 'id != ' . $options['values']['id']; | |
} |
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
/**********************************************/ | |
/* | |
/* IR_Black Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
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
Get in contact with us: | |
[email protected] or [email protected] or [email protected] | |
02 8003 3523 | |
http://www.littlebirdelectronics.com/facebook | |
http://twitter.com/lbhq | |
http://www.littlebirdelectronics.com/googleplus | |
Hackerspaces: | |
http://www.makehackvoid.com/ (Canberra) |
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
db.tests.remove({slug: "foo"}) | |
db.tests.insert({slug: "foo", forms: [ {slug: "section 1", clusters: [ | |
{slug: "cluster 1", items: [1,2,3]}, | |
{slug: "cluster 2", items: [4,5,6]} | |
]}]}); | |
var map = function() { | |
this.forms.forEach(function(form){ | |
form.clusters.forEach(function(cluster){ | |
cluster.items.forEach(function(item){ |
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
Get | |
array | |
'assertion' => string 'reduce -> multiple not supported yet' (length=36) | |
'assertionCode' => int 10075 | |
'errmsg' => string 'db assertion failure' (length=20) | |
'ok' => float 0 | |
From |
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
$content .= $itemopen . '### [' . $bookmark->title . '](' . $bookmark->url . ") \n" . $bookmark->description . "\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
/** | |
* tiger in the snow (HTML5) | |
*/ | |
figure { | |
min-width: 178px; | |
/** outline: solid 1px red; /* uncomment rule to see figure outline */ | |
position: relative; | |
opacity: 1.0; | |
} | |
figure:hover { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.