Skip to content

Instantly share code, notes, and snippets.

View renoirb's full-sized avatar

Renoir Boulanger renoirb

View GitHub Profile
@renoirb
renoirb / .gitignore
Created July 4, 2012 17:12
My current Symfony2 deps file
web/bundles/
app/bootstrap.php.cache
app/cache/*
app/logs/*
build/
vendor/
node_modules/
app/config/parameters.ini
web/bundles/*
app/bootstrap.php.cache
@renoirb
renoirb / AbstractClient.php
Created July 9, 2012 06:04
How to use Guzzle in your bundle, the missing instructions
<?php
namespace Renoir\AggregationBundle;
/**
* Abstract client to use for each Client
*
* Example location: src/Renoir/AggregationBundle/AbstractClient.php
**/
@renoirb
renoirb / parseLdapDn
Created July 20, 2012 19:25
parseLdapDn
I had to work that out in PHP.
Since a LDAP string can sometimes be lengthy and have many attributes, I thought of contributing how I am using it in a project.
I wanted to use:
CN=username,OU=UNITNAME,OU=Region,OU=Country,DC=subdomain,DC=domain,DC=com
And turn it into:
@renoirb
renoirb / dabblet.css
Created March 27, 2013 21:56
Adaptation: nav with a light colored line
/**
* Adaptation: nav with a light colored line
*
* Twitter Bootstrap code re-use, adapting: .nav, .nav-stacked, .nav-pills
*/
// The real deal.
.nav-light>li{
font-size:1.1em
}
@renoirb
renoirb / dabblet.css
Created April 3, 2013 14:53
Hilighted articles 1 on top, with an image, two at the bottom
/**
* Hilighted articles 1 on top, with an image, two at the bottom
*/
.articles-hilighted h2,.articles-secondary h2,.articles-hilighted h3,.articles-secondary h3,.articles-hilighted h4,.articles-secondary h4{font-size:1.2em;line-height:1.3em}
.articles-hilighted{overflow:hidden}.articles-hilighted .hentry-body{min-height:280px;padding:25px;background-color:#f1f1f1}.articles-hilighted .hentry .hilighted-figure{height:280px;margin:0}.articles-hilighted .hentry .hilighted-figure b{display:block}.articles-hilighted .hilighted-figure{display:none}.articles-hilighted .hilighted-alfa,.articles-hilighted .tag-favourites:first-child{margin-bottom:20px;overflow:hidden}.articles-hilighted .hilighted-alfa .hilighted-figure,.articles-hilighted .tag-favourites:first-child .hilighted-figure{display:block;float:left;width:50%}.articles-hilighted .hilighted-alfa .hilighted-figure img,.articles-hilighted .tag-favourites:first-child .hilighted-figure img{width:100%}.articles-hilighted .hilighted-alfa .hentry-body,.articles-h
@renoirb
renoirb / README.md
Last active May 3, 2023 13:44
I created this migration script in 2010 while I had to transfer a quantity of websites.
@renoirb
renoirb / dabblet.css
Created July 1, 2013 23:49
Lea Verou's CSS Lightbox, taken on webplatform.org
/**
* Lea Verou's CSS Lightbox, taken on webplatform.org
* For redistribution purposes
* @author Lea Verou <lea@w3.org>
*/
#lightbox {
visibility: hidden;
position: fixed;
top: 50%;
left: 50%;
@renoirb
renoirb / dabblet.css
Created July 1, 2013 23:49
Lea Verou's CSS Lightbox, taken on webplatform.org
/**
* Lea Verou's CSS Lightbox, taken on webplatform.org
* For redistribution purposes
* @author Lea Verou <lea@w3.org>
*/
#lightbox {
visibility: hidden;
position: fixed;
top: 50%;
left: 50%;
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<script>
jQuery(document).ready(function() {
registerForm('#createAccountForm', createAccountFormHandler);
@renoirb
renoirb / dabblet.css
Created July 31, 2013 14:14
Renoir Boulanger HTML signature
/**
* Renoir Boulanger HTML signature
*/
section, a, span {
color:#3C3C3C;
}
a {
text-decoration: none;
}