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 / WP_conditional_styling.html
Created March 4, 2012 18:21
WP_ Conditional styling
<!– 1140px Grid styles for IE –>
<!–[if lte IE 9]><link rel="stylesheet" href="library/css/ie.css" type="text/css" media="screen" /><![endif]–>
<!– The 1140px Grid – http://cssgrid.net/ –>
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/1140.css" type="text/css" media="screen" />
<!– Your styles –>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( ‘stylesheet_url’ ); ?>" />
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/main.css" type="text/css" media="screen" />
@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>
@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 / dabblet.html
Created March 13, 2012 20:40 — forked from chriscoyier/dabblet.css
Untitled
<div class="triangle"></div>
<div class="triangle smooth"></div>
<?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');
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)
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',
@nWidart
nWidart / wordpress_links.TODO
Created November 3, 2012 10:42
Liens pour Alys.be
$conn = new PDO("mysql:host={$hostname_local};dbname={$database_local};charset=UTF8", $username_local, $password_local);
<?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;