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
| /* ---------------------------------------------- | |
| 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; |
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; |
| <?php | |
| add_filter( 'customer', 'return_customer_info', 10, 1 ); | |
| function return_customer_info( $arg = '' ) { | |
| /* | |
| usage: echo apply_filters('customer', 'facebook'); | |
| */ | |
| $customer = array( | |
| 'name' => 'Customer Name', | |
| 'facebook'=> 'https://www.facebook.com/customer', |
| <VirtualHost *:80> | |
| ServerAdmin template.email | |
| ServerName template.url | |
| ServerAlias www.template.url | |
| DocumentRoot template.webroot | |
| <Directory template.webroot> | |
| Options Indexes FollowSymLinks | |
| AllowOverride All | |
| Require all granted | |
| </Directory> |
| #!/bin/sh | |
| # @author: Alexandre Plennevaux | |
| # @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP | |
| # | |
| # FTP LOGIN | |
| HOST='sftp://ftp.domain.com' | |
| USER='ftpusername' | |
| PASSWORD='ftppassword' | |
| # DISTANT DIRECTORY |
| Scale - zoom transition (jquery plugin) | |
| --------------------------------------- | |
| Simple jquery plugin that create a "zoom into" animation, especially good for anchors, to visually express that the link will lead to "more information". A [Pen](http://codepen.io/pixeline/pen/bVZGrM) by [pixeline](http://codepen.io/pixeline) on [CodePen](http://codepen.io/). | |
| [License](http://codepen.io/pixeline/pen/bVZGrM/license). |
| ;(function(defaults, $, window, document, undefined) { | |
| 'use strict'; | |
| $.extend({ | |
| // Function to change the default properties of the plugin | |
| // Usage: | |
| // jQuery.pluginSetup({property:'Custom value'}); | |
| pluginSetup : function(options) { |
| <?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 */ |
| #!/bin/bash | |
| # script useful to create hosting user accounts for Apache. | |
| # It creates the system user, its home folder and the virtualhost | |
| # Enter a dummy password if you wish to attach domain to an existing user. | |
| : ' | |
| USAGE | |
| $ bash /home/pixeline/bin/create-hosting-user username password domain.tld | |
| Arguments: |