API Documentation, generated 2010-03-23T17:31:18+00:00
Actions : 3
Errors : 3
Output Types : 5
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
Index: php_spl.c | |
=================================================================== | |
--- php_spl.c (revision 290576) | |
+++ php_spl.c (working copy) | |
@@ -359,6 +359,97 @@ | |
} | |
} | |
+ | |
+/* {{{ spl_strrpos_ascii: borrowed from the php ext/standard/string.c */ |
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
// ==UserScript== | |
// @name Assembla Changeset Navigator | |
// @namespace echolibre | |
// @description In assembla, navigate to previous and next changeset | |
// @include https://code.assembla.com/* | |
// @date 2009-03-02 | |
// @version 1.0 | |
// ==/UserScript== | |
var GM_JQ = document.createElement('script'); |
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(doc) { | |
if (doc.name && doc.value) { | |
emit(doc.name, doc.value); | |
} | |
} |
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
%% Map Function | |
%% | |
%% This map function will output the doc.name as the key | |
%% and the doc.value as the value of that key. | |
%% | |
%% In javascript the code would look like: | |
%% | |
%% function(doc) { | |
%% if (doc.name && doc.value) { | |
%% emit(doc.name, doc.value); |
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
%% Map Function | |
%% Thanks to Adam Kocoloski (@kocolosk) for this compacted version | |
fun({Doc}) -> | |
case {proplists:get_value(<<"name">>, Doc), proplists:get_value(<<"value">>, Doc)} of | |
{undefined, _} -> | |
ok; | |
{_, undefined} -> | |
ok; | |
{Name, Value} -> | |
Emit(Name, Value); |
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 | |
namespace lithium\marketing\book\chapter; | |
class One {} | |
class Two {} |
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
diff --git a/models/SphereView.php b/models/SphereView.php | |
index 5e778d2..f7b8b26 100644 | |
--- a/models/SphereView.php | |
+++ b/models/SphereView.php | |
@@ -13,14 +13,14 @@ class SphereView extends \lithium\data\Model { | |
'views' => array( | |
'posts' => array( | |
'map' => 'function(doc) { | |
- if (doc.type == "post") { | |
+ if (doc.type && doc.type == "post" && doc.created) { |
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 | |
$n = 50; | |
$k = 7; | |
function boom($var) { | |
$return = 1; | |
while ($var > 0) { | |
$return = ($return * $var); |
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
fun({Doc}) -> | |
case {proplists:get_value(<<"id">>, Doc)} of | |
{undefined} -> | |
ok; | |
{Id} -> | |
Emit(Id, Doc); | |
_ -> | |
ok | |
end | |
end. |
OlderNewer