Skip to content

Instantly share code, notes, and snippets.

<?php $this->form->prepare(); ?>
<div class="row">
<!-- Contenido seleccionado en el menu de la izquierda -->
<div class="col-md-9 col-md-push-3">
<div id="navigation_wrapper" style="display:none" class="navigation_content">
<?php echo $this->form()->openTag($this->form) . PHP_EOL; ?>
<?php foreach($this->form->getElements() as $formElement):?>
<div class="form-group">
<?php
$config = array(
'controllers' => array(
'manager' => array(),
'invokables' => array(),
'factories' => array(),
'plugins' => array()
),
'views' => array(
'manager' => array(),
for repo in $(cat repos-list.txt)
do
git clone user@host:/var/git/$repo
cd /d/repos/$repo
git remote add gitlab git@otherhost:group/$repo.git
git push gitlab master
for branch in $(git branch -r)
do
remote="${branch:0:6}"
{
"name": "test/replace",
"minimum-stability": "dev",
"require": {
"zendframework/zendframework": "~2.2",
"doctrine/doctrine-orm-module": "0.8.*",
"slm/mail": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7"
public function getServiceConfig()
{
return array(
'factories' => array(
'auth' => function(ServiceManager $sm) {
$db = $sm->get('Zend\Db\Adapter\Adapter');
$authAdapter = new \Zend\Authentication\Adapter\DbTable\CallbackCheckAdapter(
$db,
'users',
'username',
@BinaryKitten
BinaryKitten / hacman.php
Created February 9, 2014 18:50
hacman rpc
<?php
$header = <<<EOH
/*****************************************************************************
* Hacman Active Member RFIDs
* Requirements: PHP 5.3+, PHP XMLRPC and CURL Extensions
*
* Options Available:
* ---------------------
* -h, --help shows this message
* -u, --username the username for the RPC call
<?php
protected function _initModules()
{
$moduleAutoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH . '/modules/default'
));
@BinaryKitten
BinaryKitten / index.html
Created July 16, 2014 10:52
Native List toggler
<div class="speech-l">
<h4>Brands</h4>
<ul>
<li><a class="all" href="#">Hello</a>
</li>
<li><a class="all" href="#">Joe Rocket <em>(57)</em></a>
</li>
@BinaryKitten
BinaryKitten / index.html
Created July 16, 2014 10:52
jQuery List Toggler
<div class="speech-l">
<h4>Brands</h4>
<ul>
<li><a class="all" href="#">Hello</a>
</li>
<li><a class="all" href="#">Joe Rocket <em>(57)</em></a>
</li>
add_filter("gform_address_types", "uk_address", 10, 2);
function uk_address($address_types, $form_id)
{
$address_types["uk"] = array(
"label" => "UK",
"country" => "United Kingdom",
"zip_label" => "Postcode",
"state_label" => "County",
"states" => array(