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 / docker-compose.yml
Created June 3, 2022 08:56 — forked from ju2wheels/docker-compose.yml
docker-compose reference YAML file with comments
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
service_name:
@pixeline
pixeline / basic_sass_features.md
Last active August 28, 2019 11:12 — forked from blackfalcon/basic_sass_features.md
Exercises in basic Sass features

Sass is a powerhouse language that is adding new features all the time. For this introduction we will go over the basics of the language and see how they all tie together. We will discuss nesting, parent selector definitions, variables, Sass math, @extends, and @mixins.

Code comments

Commenting your code is the number one awesome thing any developer can do. In CSS you can place comments in your code /* */, but this will appear in the actual CSS and sometimes you don't want or need all that stuff to be there.

In Sass comments are highly encouraged. Sass has what are called 'silent comments' using the // syntax. This will allow the developer to comment like crazy and none of this is exposed in the final CSS. An interesting feature is that Sass supports both types of comments.

Scss

@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;
<?php
//ini_set('display_errors',1);
//error_reporting(E_ALL | E_WARNING);
function is_valid_url($url){
$url = filter_var($url, FILTER_SANITIZE_URL);
return filter_var($url, FILTER_VALIDATE_URL);
}
/* RUNTIME */
@pixeline
pixeline / script.sh
Last active March 23, 2022 17:22 — forked from thimbl/script.sh
#!/bin/bash
# script automatisant la création d'un compte hébergé: utilisateur + dossier + virtualhost
# Enter dummy password if you wish to attach domain to an existing user.
: '
HOW-TO
$ bash /home/pixeline/bin/create-hosting-user username password domain.tld
Arguments:
<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 / .gitignore
Last active October 25, 2022 01:41 — forked from redoPop/.gitignore
Default Wordpress .gitignore file
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@pixeline
pixeline / ios-web-app.html
Last active January 23, 2018 12:47 — forked from tfausak/ios-8-web-app.html
iOS Web App + Startup Images, for up to iphone 5 + ipad retina. Works as-is for Wordpress theme header.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title>iOS Web App</title>
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
@pixeline
pixeline / Contract Killer 3.md
Last active January 2, 2023 18:10 — forked from flopreynat/Contract Killer 3.md
Website Design & Development Contract template, heavily modified version of shoogledesigns's French translation of @malarkey's Contract Killer 3.

Contrat de création & réalisation de la présence en ligne du projet [Nom du projet]

Date: [4 Septembre 2013], [ville du prestataire], [pays du prestataire]

Entre moi, [Nom du prestataire] et vous [Nom de la société client]

Résumé

Notre volonté est de toujours donner notre maximum pour répondre à vos besoins et attentes, mais il est important que nous couchions sur papier les modalités de notre relation commerciale afin que chacun de nous partagions le même cadre de référence; qui doit faire quoi et à quel moment, et ce qui se passera si quelque chose ne se passait pas comme prévu. Vous ne trouverez aucun jargon juridique compliqué ou de longs passages de texte incompréhensibles dans ce contrat. Nous n’avons aucune volonté de vous amener à signer quelque chose que vous pourriez regretter par après. Nous souhaitons que le meilleur intérêt des deux parties prévale, dès aujourd’hui et pour la durée de ce contrat.