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 | |
| function session_readonly(){ | |
| if(version_compare(PHP_VERSION, '7.0.0') >= 0){ | |
| session_start(array('read_and_close' => true)); | |
| } else { | |
| $session_name = preg_replace('/[^\da-z]/i', '', $_COOKIE[session_name()]); | |
| $session_data = file_get_contents(session_save_path() . '/sess_' . $session_name); | |
| $return_data = array(); | |
| $offset = 0; |
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
| import React, { PropTypes } from 'react'; | |
| const $NAME = (props) => { | |
| return ( | |
| $END | |
| ); | |
| } | |
| $NAME.propTypes = { | |
| // myProp: PropTypes.string.isRequired |
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
| import groovy.transform.Field | |
| import hudson.AbortException | |
| import hudson.scm.SubversionSCM | |
| import org.tmatesoft.svn.core.SVNDepth | |
| import java.util.concurrent.ConcurrentHashMap | |
| @Field int slaves = 4; | |
| @Field int threadsPerSlave = 2; | |
| @Field boolean coverageBuild = false |
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 PHPSTORM_META { | |
| /** | |
| * PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
| * Generated on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ |
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 Application\Entity; | |
| /** | |
| * Class Foo | |
| * | |
| * @package Application\Entity | |
| */ | |
| class Foo | |
| { |
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
| // Doctrine.Tests.ORM.Mapping.User.dcm.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <map:class-mapping xmlns="http://doctrine-project.org/schemas/orm" | |
| xmlns:map="http://doctrine-project.org/schemas/annotations/class-mapping"> | |
| <map:class name="Doctrine\Tests\ORM\Mapping\User"> | |
| <entity table="cms_users" /> | |
| <indexes> | |
| <index name="name_idx" columns="name"/> |
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 | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
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
| //============================================================================ | |
| // Name : OctaneCrawler.cpp | |
| // Author : Berlin Brown (berlin dot brown at gmail.com) | |
| // Version : | |
| // Copyright : Copyright Berlin Brown 2012-2013 | |
| // License : BSD | |
| // Description : This is the simplest possible web crawler in C++ | |
| // Uses boost_regex and boost_algorithm | |
| //============================================================================ |
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 | |
| function parse_properties($txtProperties) { | |
| $result = array(); | |
| $lines = split("\n", $txtProperties); | |
| $key = ""; | |
| $isWaitingOtherLine = false; | |
| foreach ($lines as $i => $line) { | |
| if (empty($line) || (!$isWaitingOtherLine && strpos($line, "#") === 0)) | |
| continue; | |