Skip to content

Instantly share code, notes, and snippets.

View foxmask's full-sized avatar
🇰🇷
Focusing

FoxMaSk foxmask

🇰🇷
Focusing
View GitHub Profile
@foxmask
foxmask / index.php
Created March 4, 2012 17:23
index.php entry point
<?php
/**
* @package actu.org
* @subpackage
* @author Olivier Demah
* @copyright 2011 Olivier Demah
* @link http://www.foxmask.info
* @license http://gnu.org All rights reserved
*/
@foxmask
foxmask / gist:2204556
Created March 26, 2012 11:41
php --rc arrayIterator on Debian 6.0.4 with php 5.3.3
$ php --rc arrayIterator
Class [ <internal:SPL> <iterateable> class ArrayIterator implements Iterator, Traversable, ArrayAccess, SeekableIterator, Serializable, Countable ] {
- Constants [2] {
Constant [ integer STD_PROP_LIST ] { 1 }
Constant [ integer ARRAY_AS_PROPS ] { 2 }
}
- Static properties [0] {
}
@foxmask
foxmask / gist:2227090
Created March 28, 2012 15:14
Atoum debugging --test-it
> mageekguy\atoum\tests\units\writers\std\out...
[SSS_________________________________________________________][3/3]
=> Test duration: 0.01 second.
=> Memory usage: 0.75 Mb.
> Total tests duration: 15.86 seconds.
> Total tests memory usage: 474.75 Mb.
> Running duration: 23.17 seconds.
Failure (131 tests, 957/959 methods, 0 failure, 1 error, 0 exception) !
> There are 18 outputs:
=> In mageekguy\atoum\tests\units\factory::testReturnWhenBuild():
@foxmask
foxmask / index.html
Created April 21, 2012 21:13
Octopress index.html
---
layout: default
---
{% render_partial docs/README.md %}
@foxmask
foxmask / index.php
Created April 23, 2012 19:08
Gitiwiki books index.php
var/books/jelix/books/index.gtw/index.php
<?php
$BOOKINDEX=array (
0 =>
array (
0 => 'part',
1 => 'introduction',
2 => 'Introduction',
3 =>
array (
@foxmask
foxmask / page.php
Created April 23, 2012 19:10
Gitiwiki books mise-en-route/index/page.php
<?php
$PAGE=array (
'path' => 'mise-en-route',
'book' => 'index.gtw',
'type' => 'part',
'title' => 'Mise en route',
'children' =>
array (
0 =>
array (
@foxmask
foxmask / page.php
Created April 23, 2012 19:10
Gitiwiki books mise-en-route/page.php
<?php
$PAGE=array (
'path' => 'mise-en-route',
'book' => 'index.gtw',
'type' => 'part',
'title' => 'Mise en route',
'children' =>
array (
0 =>
array (
@foxmask
foxmask / log
Created May 23, 2012 09:19
Log of installation of nodephp aka React-PHP
composer.phar install
Installing dependencies from lock file
- Installing symfony/browser-kit (dev-master)
Cloning 6ab1b5f07dd972d2c5e3b5d48c9776d0823149c7
- Installing symfony/class-loader (dev-master)
Cloning c57e62c886899f8d88264efad23c857eb198dc09
- Installing symfony/css-selector (dev-master)
Cloning 282a6ed63e542463240fc21db96babdbdc889271
@foxmask
foxmask / gist:2851881
Created June 1, 2012 12:43
twitter dropdown : recuperer un code pays dans la liste
$('ul.dropdown-menu').click(function (e) {
var countryVal = $('ul.dropdown-menu li a').text() ;
//ici j'ai toute la liste qui est retournée et pas la valeur selectionnée
alert(countryVal);
$.ajax({
type: "POST",
url: '/getcountry',
data: { country: countryVal },
success: function(data) {
$('#tabledata').html(data);
@foxmask
foxmask / home.html
Created August 12, 2012 23:10
Reverse for ''profiles_profile_detail'' with arguments
{% if user.is_authenticated %}
<a href="{% url 'profiles_profile_detail' user.username %}">Mon compte</a>
{% endif %}