Skip to content

Instantly share code, notes, and snippets.

View FreakDev's full-sized avatar

Mathias DESLOGES FreakDev

  • Montréal - Canada
View GitHub Profile
@FreakDev
FreakDev / gist:47b965916c4018fc77284149e1ea6939
Last active May 28, 2024 15:44
gridstack wrapper for usage with react
{
"name": "react-redux-boilerplate",
"version": "0.0.1",
"description": "",
"main": "js/app.js",
"dependencies": {
"react": "0.14.6",
"react-dom": "0.14.6",
"react-redux": "^4.4.1",
"redux": "^3.3.1",
<?php
global $bdd;
try {
$bdd = new PDO("mysql:host=localhost;dbname=todo_tp;unix_socket=/home/mathiasd/.mysql/mysql.sock", "root", "root");
$bdd->exec('SET NAMES utf8');
} catch (Exception $e) {
die('Can\'t connect to MySql Serveur : ' . $e->getMessage());
}
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: 127.0.0.1 (MySQL 5.5.33)
# Database: sqlkart
# Generation Time: 2014-11-23 13:34:01 +0000
@FreakDev
FreakDev / gist:1d95b245d956a288eccf
Last active April 28, 2017 12:28
PHP cli utilities
<?php
/**
* read input from std in
*/
function readInput ($str = "") {
echo $str;
$handle = fopen ("php://stdin","r");
$line = fgets($handle);
fclose($handle);
@FreakDev
FreakDev / gist:2309378
Created April 5, 2012 09:09 — forked from Victa/gist:2309363
fetch.sublime-settings
{
"files": {
"jQuery min": "http://code.jquery.com/jquery.min.js",
"Eric Meyer's reset": "http://meyerweb.com/eric/tools/css/reset/reset.css",
"normalize.css": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"Backbone.js": "http://documentcloud.github.com/backbone/backbone-min.js",
"Underscore.js": "http://documentcloud.github.com/underscore/underscore-min.js",
"Prefix free": "https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.js",
"jQuery Transit": "https://raw.github.com/rstacruz/jquery.transit/master/jquery.transit.js",
"plinejs": "http://labs.svn.octaveoctave.com/mathias/plinejs/build/plinejs-0.4-n.js",