This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
<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] |
This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
// 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; |
<!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"> |
<?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 */ |
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.
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
#!/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: |
# 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: |
# 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 |
Date: [4 Septembre 2013], [ville du prestataire], [pays du prestataire]
Entre moi, [Nom du prestataire] et vous [Nom de la société client]
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.