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
$filters = array( | |
'chapeu' => array('StripTags', 'HtmlEntities'), | |
'corpo' => 'HtmlEntities', | |
'titulo' => array( 'HtmlEntities'), | |
'alias' => array( | |
'StripTags', | |
'StringToLower', | |
new Zag_Filter_CharConvert(null,null) | |
), | |
'lide' => 'HtmlEntities', |
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
$filter1 = new Zag_Filter_CharConvert(array( | |
'replaceWhiteSpace' => '-', | |
'locale' => 'en_US', | |
'charset'=> 'UTF-8' | |
)); | |
echo $filter1->filter('ééé ááá 90');//eee-aaa-90 | |
echo $filter1->filter('óóó 10aáééé');//ooo-10aaeee |
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
alert(typeof(null)); // object | |
alert(typeof(undefined)); // undefined | |
alert(null !== undefined) //true | |
alert(null == undefined) //true |
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 | |
/** | |
* @category gadgetXML | |
* @package Faz tratamento dos gadget's no XML | |
* @author ##### <##@####> | |
* @version 1.0 | |
* @date 2008-05-06 | |
*/ | |
class gadget | |
{ |
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 PowerRanger { | |
public function get_classificacao() | |
{ | |
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 | |
/** dependencies **/ | |
require 'Zend/Loader/Autoloader.php'; | |
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true); | |
$view = new Zend_View; | |
$view->example_function_of_view(); |
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
... | |
2012-03-28 18:45:25,442 INFO solr.SolrIndexer - SolrIndexer: starting at 2012-03-28 18:45:25 | |
2012-03-28 18:45:25,628 INFO indexer.IndexerMapReduce - IndexerMapReduce: crawldb: crawl/crawldb | |
2012-03-28 18:45:25,628 INFO indexer.IndexerMapReduce - IndexerMapReduce: linkdb: crawl/linkdb | |
2012-03-28 18:45:25,628 INFO indexer.IndexerMapReduce - IndexerMapReduces: adding segment: crawl/segments/20120328181747 | |
2012-03-28 18:45:25,981 INFO indexer.IndexerMapReduce - IndexerMapReduces: adding segment: crawl/segments/20120328182718 | |
2012-03-28 18:45:27,042 WARN util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable | |
2012-03-28 18:45:28,567 INFO plugin.PluginRepository - Plugins: looking in: /home/btlagutoli/Downloads/apache-nutch-1.4-bin/runtime/local/plugins | |
2012-03-28 18:45:29,237 INFO plugin.PluginRepository - Plugin Auto-activation mode: [true] | |
2012-03-28 18:45:29,237 INFO plugin.PluginRepository - Registered Plugins: |
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 | |
... | |
function loadUserPrefs($username){ | |
$default = parse_ini_file(APPLICATION_PATH.'/configs/prefs.ini'); | |
$table = $this->getPrefsTable(); | |
$query = $table->select()->where('username = ?',$username); | |
if (count($result = $table->fetchAll($query))) { | |
return array_merge($default,$row->toArray()); |
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
<!DOCTYPE html> | |
<html id="home" lang="en"> | |
<head> | |
<meta charset=utf-8 /> | |
<meta name="viewport" content="width=620" /> | |
<title>Backbone - examples</title> | |
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script src="http://documentcloud.github.com/backbone/backbone-min.js"></script> | |
<script> |
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 Iptc { | |
/** | |
* IPTC's codes | |
*/ | |
const OBJECT_NAME = '005';//título da imagem | |
const EDIT_STATUS = '007'; | |
const PRIORITY = '010'; |
OlderNewer