Skip to content

Instantly share code, notes, and snippets.

View pixeline's full-sized avatar
😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !

Alexandre Plennevaux pixeline

😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !
View GitHub Profile
@pixeline
pixeline / dabblet.css
Created September 6, 2013 06:35
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<VirtualHost *:80>
ServerAdmin template.email
ServerName template.url
ServerAlias www.template.url
# redirect www.domain.tld to domain.tld
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,QSA,R=301]
@pixeline
pixeline / _sassy_link_underlines.md
Last active June 11, 2016 14:57 — forked from jimmynotjim/_sassy_link_underlines.md
Sassy Link Underlines
@pixeline
pixeline / _underline.scss
Last active July 6, 2016 19:18 — forked from jamesmusgrave/_smart-underline.scss
Smart Underline Sass Mixin
// dev note: make sure to use an autoprefixer...
@mixin underline($background: #fff, $text: #000, $selection: #ffc, $position: 86%){
color: inherit;
text-decoration: none;
background: linear-gradient($background, $background), linear-gradient($background, $background), linear-gradient($text, $text);
background-size: .05em 1px, .05em 1px, 1px 1px;
background-repeat: no-repeat, no-repeat, repeat-x;
text-shadow: 0.03em 0 $background, -0.03em 0 $background, 0 0.03em $background, 0 -0.03em $background, 0.06em 0 $background, -0.06em 0 $background, 0.09em 0 $background, -0.09em 0 $background, 0.12em 0 $background, -0.12em 0 $background, 0.15em 0 $background, -0.15em 0 $background;
background-position-y: $position,$position, $position;
/* ----------------------------------------------
THE VOICE
// this class set is used to convey specific expressions in a coherent, global system: the voice of your application.
---------------------------------------------- */
.voice{
font-size:100%;
font-family: $font-sans;
&--info{
background-color:#FFFFDD;
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@pixeline
pixeline / Good bye promo1.md
Last active October 26, 2017 22:24
Farewell

Voilà. C'est quasi fini. 25 avril --> 27 octobre 2017

185 jours
15.984.000 secondes
266.400 minutes
4440 heures
26 semaines et 3 jours.

Vous avez été la première promo de BeCode.

@pixeline
pixeline / functions.php
Last active January 23, 2018 12:45
Function to prevent orphans in WordPress post titles. It simply replaces the last space after the penultimate word of a title by a non-breaking space. Pfew.
function add_nonbreaking_space_to_text($title, $id = null){
$title = explode(' ', $title);
$length = count($title);
if( $length >0){
$title[ $length-2 ] .= "&nbsp;" . $title[ $length-1 ];
array_pop($title);
}
return implode(" ", $title);
}
@pixeline
pixeline / class-popular-posts-data.php
Last active January 23, 2018 12:45
An interface to the wordpress-popular-posts WordPress plugin that returns the raw data.
@pixeline
pixeline / siege-urls.php
Last active January 23, 2018 12:45
WP-siege: Generates list of all published URLs from a Wordpress site, for use with Siege.
<?php
/*
*
* WP-siege: Generates list of all published URLs from a Wordpress site, for use with Siege.
* Author: Alexandre Plennevaux alexandre@pixeline.be
*
*/
//path to a wp-load file
include( './wp-load.php' );