Skip to content

Instantly share code, notes, and snippets.

View nWidart's full-sized avatar
💭
Available For Hire

Nicolas Widart nWidart

💭
Available For Hire
View GitHub Profile
@nWidart
nWidart / SublimeLinter.sublime-settings
Created April 20, 2013 09:21
SublimeLinter Settings ile
/*
SublimeLinter default settings
*/
{
/*
Sets the mode in which SublimeLinter runs:
true - Linting occurs in the background as you type (the default).
false - Linting only occurs when you initiate it.
"load-save" - Linting occurs only when a file is loaded and saved.
<?php
// 1. Ajouté item X à la DB( items[id,name,modifier_id])
//
$item = new Item;
$item->name = "name";
$item->save();
// 2. Ajouté des modifiers à un Item X
//
$modifier = new Modifier;
$conn = new PDO("mysql:host={$hostname_local};dbname={$database_local};charset=UTF8", $username_local, $password_local);
@nWidart
nWidart / wordpress_links.TODO
Created November 3, 2012 10:42
Liens pour Alys.be
public function post_edit_marker($id)
{
$input = Input::all();
$file = Input::file('img_input');
$rules = array(
'name' => 'required|max:150|alpha',
'address' => 'required|max:200|alpha_num',
'lat' => 'required|numeric',
'lng' => 'required|numeric',
'type' => 'required|alpha',
Buhlmann:
IE:
✔ Menu : dégradation rgba() @done (12-10-26 09:00)
✔ Menu déroulant : dégradation rgba() @done (12-10-26 09:00)
Fix d'erreurs:
✔ Padding bottom sur l'adresse (bas droite) @done (12-10-26 09:46)
✔ Background sur les Childs de 'Rolling Stock' @done (12-10-26 10:02)
✔ Diminuer la taille du "B" @done (12-10-26 10:12)
<?php
// Log d'un message classique
$this->firephp->log('votre message');
// Log d'une variable (array/string/objet)
$this->firephp->log($data);
// Log d'un message de type 'info' (background jaune)
$this->firephp->info('votre message');
@nWidart
nWidart / dabblet.html
Created March 13, 2012 20:40 — forked from chriscoyier/dabblet.css
Untitled
<div class="triangle"></div>
<div class="triangle smooth"></div>
@nWidart
nWidart / gist:2027295
Created March 13, 2012 06:43 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@nWidart
nWidart / portfolio-meta.php
Created March 10, 2012 09:31
portfolio-spec
<div class="my_meta_control">
<label>Portfolio images</label>
<p>
<?php $mb->the_field('projects_img'); ?>
<input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
<span>Enter url using this path : /library/projects_img/,</span>
</p>
<label>Project URL</label>
<p>