Skip to content

Instantly share code, notes, and snippets.

Problem 1
- Installation request for gushphp/gush dev-master -> satisfiable by gushphp/gush[dev-master].
- gushphp/gush dev-master requires gushphp/gush-github-adapter ~1.0 -> no matching package found.
Problem 2
- Installation request for gushphp/gush-github-adapter dev-master -> satisfiable by gushphp/gush-github-adapter[dev-master].
- gushphp/gush-github-adapter dev-master requires gushphp/gush ~1.3 -> no matching package found.
<?php
//Module.php
namespace CheeseAgent\Core;
use \Silex\ServiceProviderInterface;
use \Silex\Application;
use \Symfony\Component\HttpFoundation\Response;
use \Symfony\Component\HttpFoundation\Request;
use \Symfony\Component\HttpKernel\KernelEvents;
use \CheeseAgent\Core\Value\Gender;
class KohanaORMUserRepository implements UserRepositoryInterface{
private $orm;
public function __construct(){
$this->orm = ORM::Factory('user');
}
public function findOneByEmail($email){
$ormUser = $this->orm->where('email','=',$email)->find();
if($ormUser){
$user = new User($ormUser->id,$ormUser->username,$ormUser->passwordHash,$ormUser->email);
return $user;
<?php
class Template {
private $data;
private $fileName;
public function __construct($filename) {
$this->setFileName($filename);
}
/*
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
//Controller/Action
$menu = array(
'brands'=>array(
'brand1'=>array(
'category1'=>array(
'item1'=>'name'
)
)
)
)
class Form extends Kohana_Form{
public static function input($name, $value = NULL, array $attributes = NULL)
{
if ( ! isset($attributes['id']))
{
// Default type is text
$attributes['id'] = $name;
<?= Form::open('brand/create') ?>
<legend><?= __('Login') ?></legend>
<?php if (isset($create_brand)): ?>
<div class="alert alert-error">
<?= Form::button('close', 'x', array('type' => 'button', 'class' => 'close', 'data-dismiss' => 'alert')); ?>
<?= $login_error ?>
</div>
<?php endif; ?>
<div class="control-group">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./index.html" class="brand">Bootstrap</a>
<div class="nav-collapse collapse">
var frontier_outpost ={ "height":64,
"layers":[
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 159, 167, 176, 176, 146, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 33, 21, 22, 23, 20, 21, 0, 0, 0, 0, 0, 16, 16, 144, 176, 162, 154, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 26, 35, 33, 32, 26, 27, 24, 25, 26, 0, 0, 0, 0, 16, 152, 164, 176, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 28, 29, 30, 35, 28, 32, 30, 31, 28, 29, 30, 0, 0, 0,