Skip to content

Instantly share code, notes, and snippets.

View vonglasow's full-sized avatar
🎯
Focusing

vonglasow

🎯
Focusing
View GitHub Profile
@vonglasow
vonglasow / pomo.pl
Last active August 29, 2015 14:03
Get redmine issues title for pomojs
#!/usr/bin/perl
use strict;
use warnings;
use Carp;
use WWW::Mechanize;
use Mojo::DOM;
use String::ShellQuote;
@vonglasow
vonglasow / Gof.php
Last active August 29, 2015 14:03
Conway
<?php
require_once __DIR__ . '/vendor/autoload.php';
class GameOfLife
{
const DEAD = 0;
const ALIVE = 1;
const X = 25;
@vonglasow
vonglasow / suffix.py
Created June 22, 2014 15:01
suffix.py
# -*- coding: utf-8 -*-
from hyde.plugin import CLTransformer
from hyde.fs import File
from operator import attrgetter
#Fork of lepture/suffix.py
class SuffixPlugin(CLTransformer):
"""
@vonglasow
vonglasow / Factory.php
Last active August 29, 2015 14:02
Factory
<?php
class Factory
{
public function create()
{
$this->context->create();
}
public function setContext($context)
@vonglasow
vonglasow / Free.php
Last active August 17, 2016 09:14
Free
<?php
class Free
{
const A = 0x1;
const B = 0x2;
const C = 0x4;
protected $typeList;
@vonglasow
vonglasow / .gitignore
Last active August 29, 2015 14:01
Hoa Http request
/vendor/
@vonglasow
vonglasow / gist:10021599
Last active August 29, 2015 13:58
traits properties
<?php
trait a {
public function getConfig()
{
return $this->world . '/config.php';
}
}
class B {
@vonglasow
vonglasow / Data.php
Created January 31, 2014 10:17
Archi
<?php
namespace A;
use Zend;
class Data
{
protected $limit;
// ...
@vonglasow
vonglasow / log error
Created October 31, 2013 12:09
Exception raised when try to make a reflection on class "Application\Controller\Main"
Oct 31 12:49:00 raspberrypiserver apache2: PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class Application\Controller\Main does not exist' in /home/pi/sohoa/vendor/hoa/core/Hoa/Core/Consistency.php:411#012Stack trace:#012#0 /home/pi/sohoa/vendor/hoa/core/Hoa/Core/Consistency.php(411): ReflectionClass->__construct('Application\Con...')#012#1 /home/pi/sohoa/vendor/hoa/core/Hoa/Core/Consistency.php(907): Hoa\Core\Consistency\Consistency::dnew('Application\Con...', Array)#012#2 /home/pi/sohoa/vendor/hoa/dispatcher/Hoa/Dispatcher/Basic.php(193): dnew('Application\Con...', Array)#012#3 /home/pi/sohoa/vendor/hoa/dispatcher/Hoa/Dispatcher/Dispatcher.php(169): Hoa\Dispatcher\Basic->resolve(Array, Object(Hoa\Router\Http), NULL)#012#4 /home/pi/sohoa/vendor/sohoa/framework/Classes/Framework.php(76): Hoa\Dispatcher\Dispatcher->dispatch(Object(Hoa\Router\Http), NULL)#012#5 /home/pi/sohoa/Public/index.php(14): Sohoa\Framework\Framework->run()#012#6 {main}#012 thrown in /home/pi/sohoa/vendor/hoa/c
@vonglasow
vonglasow / xdebug.ini
Created September 19, 2013 15:00
xdebug config
xdebug.default_enable=1
xdebug.collect_params = 4
xdebug.collect_return = on
xdebug.collect_vars = off
xdebug.dump.SERVER = HTTP_HOST, SERVER_NAME, REMOTE_ADDR, REQUEST_METHOD
xdebug.dump_globals = on
xdebug.dump_once = on
xdebug.dump_undefined = on
xdebug.extended_info = on
xdebug.max_nesting_level = 100