Skip to content

Instantly share code, notes, and snippets.

View Mparaiso's full-sized avatar

mparaiso Mparaiso

View GitHub Profile
@Mparaiso
Mparaiso / gist:7012621
Created October 16, 2013 18:37
android cruid builder manifest example
{
"namespace":"com.mparaiso.crud",
"authority":"com.mparaiso.crud.Crud",
"projectName":"DEMO CRUD APPLICATION",
"dbName":"crud.db",
"dbVersion":1,
"tables":[
{
"name":"Article",
"label":"title",
@Mparaiso
Mparaiso / README.md
Created October 12, 2013 12:19 — forked from nikcub/README.md
@Mparaiso
Mparaiso / pthreads.md
Created September 10, 2013 14:25 — forked from krakjoe/pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls
@Mparaiso
Mparaiso / 1-hello-world.rb
Created September 8, 2013 18:41
humblerubybook
# hello word with ruby.
puts "Hello, world, What is your name?"
myname = gets()
result=<<HERE
Well, hello there, #{myname}."
HERE
puts result;
@Mparaiso
Mparaiso / morpion.php
Created September 7, 2013 14:23
morpion test
<?php
// lancer le programme avec php morpion.php ( version >= 5.4 )
$t = array();
// remplir le tableau
function remplirTableau()
{
for ($l = 0; $l <= 2; $l++) {
@Mparaiso
Mparaiso / morpion.php
Created September 7, 2013 14:23
morpion script
<?php
// lancer le programme avec php morpion.php ( version >= 5.4 )
$t = array();
// remplir le tableau
function remplirTableau()
{
for ($l = 0; $l <= 2; $l++) {
@Mparaiso
Mparaiso / phpunit.xml
Created September 7, 2013 10:55
phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
@Mparaiso
Mparaiso / phpunit.xml
Created September 7, 2013 10:54
phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
@Mparaiso
Mparaiso / ractive-backbone-collection-adaptor.js
Created August 15, 2013 00:55
Ractive : Backbone collection adaptor.
/**
* Allow the use of backbone collections instead of models
* @see http://experience.eu01.aws.af.cm/3/#backbone for the adaptor in action
* @see https://github.com/Rich-Harris/Ractive for details about Ractive
*/
;(function(exports){
var Ractive = exports.Ractive;
if(Ractive){
Ractive.adaptors.backboneCollection = function(collection,path){
var settingCollection, settingView, setCollection, setView, pathMatcher, pathLength, prefix;
<?php
// src/Foobar/Controller/FooController.php
namespace Foobar\Controller;
class FooController
{
public function helloAction($request)
{