Skip to content

Instantly share code, notes, and snippets.

View yannisabel's full-sized avatar
🦄

Yann Isabel yannisabel

🦄
View GitHub Profile
@yannisabel
yannisabel / gulpfile.js
Created December 10, 2017 17:48
gulpfile exemple with dev and prod env
var gulp = require('gulp'),
browserify = require('browserify'),
babelify = require('babelify'),
uglify = require('gulp-uglify'),
buffer = require('vinyl-buffer'),
source = require('vinyl-source-stream'),
sass = require('gulp-sass'),
sassGlob = require('gulp-sass-glob'),
autoprefixer = require('gulp-autoprefixer'),
sourcemaps = require('gulp-sourcemaps'),
@yannisabel
yannisabel / index.html
Created November 3, 2016 14:12
Just an exemple of how we can display images on link hover with JQuery. If the link is not an image, it doesn't do anything.
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<title>Display images on link hover</title>
<meta name="description" content="Just an exemple of how we can display images on link hover">
<meta name="author" content="Yann Isabel">
<link href="styles.css" type="text/css" rel="stylesheet">
<link rel="icon" href="http://yannisabel.com/images/logos/favicon.ico" />
@yannisabel
yannisabel / color.scss
Created June 14, 2016 17:11
SASS function to choose the best contrast color between font and background. Work with hexadecimal, RGB, RGBA, HSL and HSLA.
/*
Description : SASS function to choose the best contrast color between font and background. Work with hexadecimal, RGB, RGBA, HSL and HSLA.
Author: Yann Isabel
URL: https://github.com/yannisabel
Website : http://yannisabel.com
*/
// Color Variables
$grey: #333;
$white: #fff;