Skip to content

Instantly share code, notes, and snippets.

View cataphract's full-sized avatar

Gustavo Lopes cataphract

View GitHub Profile
Index: language/predefined/closure.xml
===================================================================
--- language/predefined/closure.xml (revision 0)
+++ language/predefined/closure.xml (revision 0)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<phpdoc:classref xml:id="class.closure" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
+
# Generated by configure.js
PHP_SRC_DIR =C:\Users\Cataphract_\Documents\php-src
PHP_VERSION_STRING=5.5.0-dev
PHP_CL=cl.exe
PHP_COMPILER_SHORT=VC10
PHP_ARCHITECTURE=x86
<?php if($form->getDefault("restricted") == false) {?>
<input class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" onclick ="
var i = $('#teste_<?php echo $key ?>_clone').clone(false).appendTo('#teste_<?php echo $key ?>_true');
i.children().find('#groups_add_clone_<?php echo $key;?>_0_clone').attr('onClick','getGroup(\'<?php echo $artigos['artigo_class'];?>\',\'#groups_<?php echo $key;?>_'+incTotal+'_clone\',\'<?php echo $key;?>\', '+incTotal+');');
i.children().find('#groups_add_clone_<?php echo $key;?>_0_clone').removeAttr('id').attr('id','groups_add_clone_<?php echo $key ?>_'+incTotal+'_clone');
i.find('#groups_<?php echo $key ?>_0_clone').attr('id','groups_<?php echo $key ?>_'+incTotal+'_clone') ;
Index: ../ext/intl/common/common_error.c
===================================================================
--- ../ext/intl/common/common_error.c (revision 319587)
+++ ../ext/intl/common/common_error.c (working copy)
@@ -232,7 +232,6 @@
INTL_EXPOSE_CONST( U_REGEX_ERROR_LIMIT );
/* The error code in the range 0x10400-0x104ff are reserved for IDNA related error codes */
-#if defined(U_IDNA_PROHIBITED_ERROR)
INTL_EXPOSE_CONST( U_IDNA_PROHIBITED_ERROR );
stream_free: MEMORY:0x7f9b77d572f8[(null)] in_free=0 opts=CALL_DTOR, RELEASE_STREAM, RSRC_DTOR
stream_free: TEMP:0x7f9b77d57108[php://temp] in_free=0 opts=CALL_DTOR, RELEASE_STREAM
stream_free: TEMP:0x7f9b77d57108[php://temp] preserve_handle=0 release_cast=1 remove_rsrc=1
stream_free: TEMP:0x7f9b77d57108[php://temp] in_free=1 opts=CALL_DTOR, RELEASE_STREAM, RSRC_DTOR
stream_free: MEMORY:0x7f9b77d572f8[(null)] in_free=1 opts=CALL_DTOR, RELEASE_STREAM, IGNORE_ENCLOSING
stream_free: MEMORY:0x7f9b77d572f8[(null)] preserve_handle=0 release_cast=1 remove_rsrc=0
<?php
function num_val(&$n, $keyMode)
{
$ncopy = $n;
if (!is_scalar($n)) {
$ncopy = gettype($ncopy);
/* (string)array() throws a notice on 5.4 */
} elseif ((string)$n === (string)(int)$n) {
$n = (int)$n;
<?php
ini_set("date.timezone", 'UTC');
$fmt = new IntlDateFormatter('en_US', 0, -1, 'UTC');
$cal = IntlCalendar::fromDateTime('2012-05-31');
$cal->add(IntlCalendar::FIELD_MONTH, 1);
//IntlDateFormatter is yet to be modified to accept IntlCalendar
echo $fmt->format($cal->getTime()/1000), "\n";
//Saturday, June 30, 2012
@cataphract
cataphract / gist:2843005
Created May 31, 2012 12:12
BreakIterator: example with code point and grapheme iterators
<?php
ini_set("intl.error_level", E_WARNING);
$text = 'ตัวอย่างข้อความ';
$codepoint_it = new RuleBasedBreakiterator('.;');
$graph_it = Breakiterator::createCharacterInstance('th');
$codepoint_it->setText($text);
$graph_it->setText($text);
print_r(iterator_to_array($codepoint_it->getPartsIterator()));
In[11]:= baseConvert[sourceOrig_List, srcBase_Integer,
dstBase_Integer] := Module[{
result = {},
count = Length[sourceOrig],
itMax,
remainder,
i,
dividend,
res,
source = sourceOrig
--------------------------------------------------------
-- File created - Wednesday-July-17-2013
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Procedure RWG_ADD_SEARCH_TERM
--------------------------------------------------------
set define off;
CREATE OR REPLACE PROCEDURE "TM_CZ"."RWG_ADD_SEARCH_TERM"
(