Skip to content

Instantly share code, notes, and snippets.

Avatar

mparaiso Mparaiso

View GitHub Profile
@Mparaiso
Mparaiso / scopes.txt
Created Apr 8, 2016 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
View scopes.txt
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
View .jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@Mparaiso
Mparaiso / gist:7012621
Created Oct 16, 2013
android cruid builder manifest example
View gist:7012621
{
"namespace":"com.mparaiso.crud",
"authority":"com.mparaiso.crud.Crud",
"projectName":"DEMO CRUD APPLICATION",
"dbName":"crud.db",
"dbVersion":1,
"tables":[
{
"name":"Article",
"label":"title",
View README.md
View pthreads.md

Multi-Threading in PHP with pthreads

A Brief Introduction to Multi-Threading in PHP

  • Foreword
  • Execution
  • Sharing
  • Synchronization
  • Pitfalls
View 1-hello-world.rb
# hello word with ruby.
puts "Hello, world, What is your name?"
myname = gets()
result=<<HERE
Well, hello there, #{myname}."
HERE
puts result;
View morpion.php
<?php
// lancer le programme avec php morpion.php ( version >= 5.4 )
$t = array();
// remplir le tableau
function remplirTableau()
{
for ($l = 0; $l <= 2; $l++) {
View morpion.php
<?php
// lancer le programme avec php morpion.php ( version >= 5.4 )
$t = array();
// remplir le tableau
function remplirTableau()
{
for ($l = 0; $l <= 2; $l++) {
View 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"
View 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"