100+ results for 'php dl'
Not the results you expected?
Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines
InstallSchema.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 407 lines
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
Location.js (https://github.com/fastner/qooxdoo.git) JavaScript · 406 lines
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
52 $this->headers .= "MIME-Version: 1.0\r\n";
53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
55 }
89 /*if ($this->attachment != '')
90 {
91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
92 $this->msgBody .= $this->attachment;
93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
156 private function sendActivationToCustomer($property) {
157 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
158 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
159 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines
IPL 3 Origins.md (https://github.com/forkwikiman/enha.git) Markdown · 2034 lines
65 5.2.5 결승
67 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit§i
68 on=1)]
82 더블 엘리미네이션이 아닌 싱글 엘리미네이션이라 3~4위, 5~8위 상금 통합
84 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit§i
85 on=2)]
95 선수들은 어디까지나 메인 토너먼트 참가자들만 기재한다.
97 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit§i
98 on=3)]
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
sfValidatorBaseTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 246 lines
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
127 $_POST['_per_page'] = 100;
128 $_POST['_page'] = 1;
129 $_POST['_url'] = admin_url( 'edit-comments.php' );
131 // Make the request
sfValidatorDateTest.php (https://github.com/bheneka/gitta.git) PHP · 246 lines
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
length_class.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 412 lines
ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines
1 <?hh
2 // @generated by docskel.php
4 /**
61 * library.
62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the
63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE
64 * results in a standard zlib deflated string (inclusive zlib headers)
65 * after a gzip file header but without the trailing crc32 checksum. In
66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant
67 * output, consisting of a zlib header, the deflated data, and an Adler
68 * checksum.
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
40 };
41 $repo = $this->em->getRepository(self::CATEGORY);
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
155 */
156 public function applyFromArray($pStyles = NULL) {
filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines
39 ?>
40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>
96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">
97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>
98 </div>
99 <!-- <div class="finance_input float_left" style="width: 170px;">-->
116 <?php foreach($invoice->invoices as $file) { ?>
117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>
118 <?php } ?>
177 </div>
178 <div class="finance_input float_left">
179 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $estimate_summ ?>" type="text"/>
180 </div>
181 <div class="clear"></div>
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines
47 float: right;
48 position: relative;
49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>
50 }
83 <?php endif; ?>
84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>
85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>
89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>
90 background-color: <?php echo $text_overlay_bgcolor;?>;
97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>
98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>
100 position: absolute;
101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>
102 }
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines
Installerold.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 232 lines
DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&
60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {
61 require_once 'Zend/Search/Lucene/Exception.php';
62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
63 }
65 // $indexTermCount = $tiiFile->readLong();
66 if (PHP_INT_SIZE > 4) {
67 $indexTermCount = ord($data[$pos]) << 56 |
68 ord($data[$pos+1]) << 48 |
79 (ord($data[$pos+3]) != 0) ||
80 ((ord($data[$pos+4]) & 0x80) != 0)) {
81 require_once 'Zend/Search/Lucene/Exception.php';
82 throw new Zend_Search_Lucene_Exception('Largest supported segment size (for 32-bit mode) is 2Gb');
83 }
TargetCpaSimulationPoint.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 488 lines
FilesystemTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 240 lines
1 <?php
3 /*
119 * @group GH-1339
120 */
121 public function testRemoveDirectoryPhp()
122 {
123 $tmp = sys_get_temp_dir();
127 $fs = new Filesystem;
128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
130 }
sale.php (https://github.com/sansanwawa/e-commerse.git) PHP · 307 lines
Cloud.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
173 $tags[] = new Zend_Tag_Item($tag);
174 } else {
175 #require_once 'Zend/Tag/Cloud/Exception.php';
176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
177 }
MappingInfo.php (https://gitlab.com/cserobiul/BITM-LabMs-New) PHP · 517 lines
Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
358 foreach ($results as $result) {
359 if (substr(PHP_OS, 0, 3) != 'WIN') {
360 fputs($handle, $result . $this->crlf);
361 } else {
AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines
1 <?php
2 namespace Parser;
3 /*
17 */
19 use Meta\AbstractPHPStructure;
20 use Meta\DocBlock;
33 /**
34 * Responsible for parsing a php class
35 *
36 * @author Richard Downes <richard@sculpt.ie>
44 * Responsible for storing the information about the structure being parsed
45 *
46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure
47 */
48 protected $structure;
NullTest.php (https://github.com/bruisedlee/zf2.git) PHP · 329 lines
schema.yml (https://github.com/eurotux/ETVA.git) YAML · 204 lines
4 package: lib.model
5 network:
6 _attributes: { phpName: EtvaNetwork }
7 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }
8 vlan_id: { type: INTEGER, required: true, foreignTable: vlan, foreignReference: id, onDelete: cascade }
15 intf_model: { type: VARCHAR, size: '255' }
16 server:
17 _attributes: { phpName: EtvaServer }
18 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }
19 name: { type: VARCHAR, size: '255', required: true }
58 hbnrestarts: { type: INTEGER, default: '0' }
59 node:
60 _attributes: { phpName: EtvaNode }
61 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }
62 cluster_id: { type: INTEGER, required: true, foreignTable: cluster, foreignReference: id, onDelete: restrict }
SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines
BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines
BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: BannerServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
34 // Base class BaseLogonService
35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
37 // Banner Dll class
38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';
40 /**
CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
14 * @package Cake.Test.Case.Model.Validator
15 * @since CakePHP(tm) v 2.2.0
16 * @license http://www.opensource.org/licenses/mit-license.php MIT License
17 */
voucher.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 263 lines
collator_test.php (https://github.com/vadimonus/moodle.git) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58 $this->error = 'Collation aware sorting not supported';
59 } else {
60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
61 }
62 parent::setUp();
Base.php (https://github.com/ewandor/horde.git) PHP · 305 lines
Tag.php (https://github.com/sceccola/com_civicrm.git) PHP · 215 lines
1 <?php
3 /*
106 if ( $entityId ) {
107 $tagset[$tagsetItem]['entityId'] = $entityId;
108 require_once 'CRM/Core/BAO/EntityTag.php';
109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );
110 } else {
147 default:
148 if ( !empty($form->_formValues['contact_tags']) ) {
149 require_once 'CRM/Core/BAO/Tag.php';
150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
PageRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 282 lines
submissionsoap.class.php (https://github.com/danmarsden/moodle-plagiarism_turnitin.git) PHP · 236 lines
MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: MassTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * Zend_Measure_Flow_Mass
25 */
26 require_once 'Zend/Measure/Flow/Mass.php';
28 /**
34 * @group Zend_Measure
35 */
36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase
37 {
38 /**
FrequencyTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: FrequencyTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
25 * Zend_Measure_Frequency
26 */
27 require_once 'Zend/Measure/Frequency.php';
29 /**
35 * @group Zend_Measure
36 */
37 class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase
38 {
39 /**
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
21 * Include access control config class
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
24 /**
25 * Include resource type config class
26 */
27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
28 /**
29 * Include thumbnails config class
30 */
31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
32 /**
33 * Include thumbnails config class
categories.php (https://github.com/mcmurdok/oscommerce.git) PHP · 247 lines
4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines
date.html (https://bitbucket.org/ferOnti/processmaker.git) HTML · 149 lines
show2.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 182 lines
13 <!-- /theme JS files -->
15 <?php include_once 'header.php'; ?>
16 <!-- Page container -->
17 <div class="page-container">
40 <!-- detached sidebar -->
41 <?php include_once 'sidebar.php'; ?>
42 <!-- /sidebar -->
57 <div class="heading-elements">
58 <div class="heading-btn-group">
59 <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>
61 <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>
180 </script>
182 <?php include_once 'footer.php'; ?>
WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines
PlatformJobQueueTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: PlatformJobQueueTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 /** Zend_Queue */
24 require_once 'Zend/Queue.php';
26 /** Zend_Queue */
27 require_once 'Zend/Queue/Message.php';
29 /** Zend_Queue_Message_Test */
class.swfshape.html (https://bitbucket.org/thncr/manuals.git) HTML · 251 lines
10 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
11 <div class="up"><a href="book.ming.html">Ming</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.swfshape" class="reference">
14 <h1 class="title">The SWFShape class</h1>
248 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
249 <div class="up"><a href="book.ming.html">Ming</a></div>
250 <div class="home"><a href="index.html">PHP Manual</a></div>
251 </div></body></html>
EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines
Alignment.php (https://gitlab.com/dmsapiens/okralive) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
155 */
156 public function applyFromArray($pStyles = NULL) {
UpdateQueryBuilderTest.php (https://github.com/csanquer/QueryBuilder.git) PHP · 326 lines
States.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 287 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 //
4 // +----------------------------------------------------------------------+
5 // | PHP Version 4 |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 1997-2002 The PHP Group |
8 // +----------------------------------------------------------------------+
9 // | This source file is subject to version 2.02 of the PHP license, |
10 // | that is bundled with this package in the file LICENSE, and is |
11 // | available at through the world-wide-web at |
12 // | http://www.php.net/license/3_0.txt. |
13 // | If you did not receive a copy of the PHP license and are unable to |
migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines
1 <?php return array(
2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',
3 'how to purchase' => 'Hvordan kjøpe',
46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',
49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>
50 I dette menyvalget kan du redigere din personlige informasjon.<br/>
provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
mulyaxisex1.html (https://gitlab.com/GLORIA04/conception-site-web) HTML · 92 lines
1 <div style="font-weight: bold;margin-left:15px;">mulyaxisex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1
2 2
3 3
45 45
46 46
47 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8"</span><span class="hl-comment"></span><span class="hl-code">
48 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;
49 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;
51 </span><span class="hl-var">$n</span><span class="hl-code"> = </span><span class="hl-number">8</span><span class="hl-code">;
MonitoredResourceDescriptor.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 262 lines
Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
173 $tags[] = new Zend_Tag_Item($tag);
174 } else {
175 require_once 'Zend/Tag/Cloud/Exception.php';
176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
177 }
theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines
notification_test.php (https://github.com/marc1706/phpbb.git) PHP · 338 lines
1 <?php
2 /**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
14 require_once __DIR__ . '/base.php';
16 class phpbb_notification_test extends phpbb_tests_notification_base
17 {
18 protected $notifications, $db, $container, $user, $config, $auth, $cache;
105 public function test_notifications()
106 {
107 $this->db->sql_query('DELETE FROM phpbb_notification_types');
109 $types = array('notification.type.quote', 'notification.type.bookmark', 'notification.type.post', 'test');
PropertyPathMapperTest.php (https://bitbucket.org/vvanuytven/php_auto.git) PHP · 319 lines
1 <?php
3 /*
16 use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper;
18 class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase
19 {
20 /**
25 /**
26 * @var \PHPUnit_Framework_MockObject_MockObject
27 */
28 private $dispatcher;
30 /**
31 * @var \PHPUnit_Framework_MockObject_MockObject
32 */
33 private $propertyAccessor;
PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines
el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines
question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines
6 <tr>
7 <td width='50' colspan='1' class='men-met'>
8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />
9 </td>
10 <td width='250' colspan='5' class='men-met'>
11 <span class='title'><?php echo $men . " " . $year; ?></span><br />
12 </td>
13 <td width='50' colspan='1' align='right' class='men-met'>
14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />
15 </td>
16 </tr>
README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines
1 Using Amazon S3 with Dojo has the following prerequisites:
2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.
3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.
4 * proxy.php requires the following modules:
9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming
10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key
11 into the proxy.php file on line 3 and 4:
20 var s3Buckets = new dojox.rpc.Service({
21 target:"http://s3.amazonaws.com/",
22 proxyUrl:"../s3/proxy.php", // the path to the proxy
23 transport:"REST",
24 envelope:"PROXIED-PATH",
_dynamic.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 19 lines
✨ Summary
This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.
This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9
109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa
557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+
558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj
559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr
560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx
SimpleListModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 106 lines
✨ Summary
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
37 this.list.clear();
38 for (int i = 0; i < list.size(); i++) {
39 PHPItem phpItem = (PHPItem) list.get(i);
40 if (accept(phpItem, searchString)) {
53 Iterator iterator = list.iterator();
54 while (iterator.hasNext()) {
55 PHPItem phpItem = (PHPItem) iterator.next();
56 if (!accept(phpItem, searchString)) {
74 private boolean accept(PHPItem phpItem, String searchText) {
75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;
76 }
88 private static class SimpleComparator implements Comparator {
89 public int compare(Object o1, Object o2) {
90 PHPItem item1 = (PHPItem) o1;
91 PHPItem item2 = (PHPItem) o2;
Token.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 84 lines
✨ Summary
This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.
This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.
ConditionalExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 70 lines
✨ Summary
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
PHPParserListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 15 lines
✨ Summary
This Java interface defines a listener for PHP parsing events, specifically parseError
and parseMessage
. It extends the built-in EventListener
interface, allowing classes to implement this listener and receive notifications when errors or messages occur during PHP parsing.
This Java interface defines a listener for PHP parsing events, specifically parseError
and parseMessage
. It extends the built-in EventListener
interface, allowing classes to implement this listener and receive notifications when errors or messages occur during PHP parsing.
1 package gatchan.phpparser.parser;
3 import java.util.EventListener;
5 /**
6 * The listener to listen to the PHPParserListener
7 *
8 * @author Matthieu Casanova
9 */
10 public interface PHPParserListener extends EventListener {
12 void parseError(PHPParseErrorEvent e);
13 void parseMessage(PHPParseMessageEvent e);
14 }
PHPDocument.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 231 lines
✨ Summary
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
8 import gatchan.phpparser.project.itemfinder.PHPItem;
9 import gatchan.phpparser.parser.PHPParser;
15 /**
16 * It's a php document. This class is an outlineable object It will contains html and php
17 *
18 * @author Matthieu Casanova
109 * Analyze the code of a php document.
110 *
111 * @param phpParser the php parser
112 */
113 public void analyzeCode(PHPParser phpParser) {
155 for (int i = 0; i < children.size(); i++) {
156 Outlineable outlineable = (Outlineable) children.get(i);
157 if (outlineable.getItemType() == PHPItem.METHOD) {
158 MethodDeclaration methodDeclaration = (MethodDeclaration) outlineable;
159 if (line == methodDeclaration.getBodyLineStart() && column > methodDeclaration.getBodyColumnStart()) return methodDeclaration;
runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 50 lines
✨ Summary
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
RestDataConnectionProvider.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 24 lines
✨ Summary
This PHP code defines a class RestDataConnectionProvider
that extends an abstract connection provider. It establishes a REST API connection using the RestApiClient
class, setting various configuration options such as compression, user agent, logging, and proxy settings based on environment variables and configuration files. The endpoint type is set to “Soap/u”.
This PHP code defines a class RestDataConnectionProvider
that extends an abstract connection provider. It establishes a REST API connection using the RestApiClient
class, setting various configuration options such as compression, user agent, logging, and proxy settings based on environment variables and configuration files. The endpoint type is set to “Soap/u”.
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
sidebar.php
(https://bitbucket.org/jesseterry/myclientbase/)
PHP · 14 lines
✨ Summary
This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor
function and includes a translated label from a language file.
This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor
function and includes a translated label from a language file.
1 <div class="section_wrapper">
3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>
5 <ul class="quicklinks content toggle">
6 <li><?php echo anchor('settings', $this->lang->line('system_settings')); ?></li>
7 <li><?php echo anchor('users', $this->lang->line('user_accounts')); ?></li>
8 <li><?php echo anchor('tax_rates', $this->lang->line('tax_rates')); ?></li>
9 <li><?php echo anchor('invoice_statuses', $this->lang->line('invoice_statuses')); ?></li>
10 <li><?php echo anchor('invoices/invoice_groups', $this->lang->line('invoice_groups')); ?></li>
11 <li class="last"><?php echo anchor('mcb_modules', $this->lang->line('modules')); ?></li>
bannerclient.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 41 lines
categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
45 $extension = JRequest::getCmd('extension');
46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));
48 // Initialise variables.
79 } else {
80 // Nothing to reorder
81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));
82 return true;
83 }
default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines
SimpleKeyCacheInputStream.php (http://2moons.googlecode.com/svn/trunk/) PHP · 130 lines
director_string_runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 35 lines
✨ Summary
This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.
This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.
category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
_normal.user.js
(http://game-golem.googlecode.com/svn/trunk/)
JavaScript · 33 lines
✨ Summary
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
7 // @include http://apps.facebook.com/castle_age/*
8 // @include https://apps.facebook.com/castle_age/*
9 // @include http://web3.castleagegame.com/castle_ws/index.php
10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js
11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css
12 // ==/UserScript==
13 // @disabled-include http://apps.facebook.com/reqs.php
14 // @disabled-include https://apps.facebook.com/reqs.php
ZipEntryTest.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 193 lines
i2c-ali1535 (http://photon-android.googlecode.com/svn/) Unknown · 43 lines
cap_inline.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 410 lines
✨ Summary
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
TwitterAlikeExample.html
(http://redis.googlecode.com/svn/trunk/)
HTML · 253 lines
✨ Summary
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
17 <div class="index">
18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19 <b>TwitterAlikeExample: Contents</b><br> <a href="#A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a><br> <a href="#Key-value stores basics">Key-value stores basics</a><br> <a href="#Atomic operations">Atomic operations</a><br> <a href="#Beyond key-value stores">Beyond key-value stores</a><br> <a href="#The set data type">The set data type</a><br> <a href="#Prerequisites">Prerequisites</a><br> <a href="#Data layout">Data layout</a><br> <a href="#Following, followers and updates">Following, followers and updates</a><br> <a href="#Authentication">Authentication</a><br> <a href="#Updates">Updates</a><br> <a href="#Paginating updates">Paginating updates</a><br> <a href="#Following users">Following users</a><br> <a href="#Making it horizontally scalable">Making it horizontally scalable</a><br> <a href="#Hashing the key">Hashing the key</a><br> <a href="#Special keys">Special keys</a>
20 </div>
28 <div class="narrow">
29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.
30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>
31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">
79 </pre>Ok I think we are ready to start coding!
80 <h2><a name="Prerequisites">Prerequisites</a></h2>
81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.
82 <h2><a name="Data layout">Data layout</a></h2>
83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled "antirez":<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">