Skip to content

Instantly share code, notes, and snippets.

View benoitboucart's full-sized avatar
🥝
Kiwiing

Benoît Boucart benoitboucart

🥝
Kiwiing
View GitHub Profile
@benoitboucart
benoitboucart / easing.css
Created October 29, 2017 16:36 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@benoitboucart
benoitboucart / gist:f80090c87fa97f4e4098
Last active December 19, 2023 22:14
How to use Jekyll with Gulp
/**
* For more information see this tutorial: http://blog.webbb.be/use-jekyll-with-gulp/
*
* Libs import
* --> How to install? npm install --save-dev gulp-minify-html
* @type {[type]}
*/
var gulp = require('gulp'),
path = require('path'),
@benoitboucart
benoitboucart / gist:8810514
Last active September 20, 2017 18:31
Limit the number of requests with batch requests in AngularJS
// Going mobile with Angular by Ari
// Limit & batch number of network requests
// Source: https://speakerdeck.com/auser/going-mobile-with-angular?utm_source=ng-newsletter&utm_campaign=b5794c7e19-AngularJS_Newsletter_2_4_142_3_2014&utm_medium=email&utm_term=0_fa61364f13-b5794c7e19-96511737
angular.module('myApp.services')
.factory('NetworkBatcher', function($http){
var service = {
promises: [],
addCall: function(obj){
var promise = $http(obj);
service.promises.push(promise);
@benoitboucart
benoitboucart / gist:8810383
Created February 4, 2014 19:19
Feature detection with AngularJS en Modernizr
// Going mobile with Angular by Ari
// Source: https://speakerdeck.com/auser/going-mobile-with-angular?utm_source=ng-newsletter&utm_campaign=b5794c7e19-AngularJS_Newsletter_2_4_142_3_2014&utm_medium=email&utm_term=0_fa61364f13-b5794c7e19-96511737
angular.module('alTouchDevice', [])
.provider('TouchDevice', function(){
var deviceType = false;
this.setToucheDevice = function(t){
deviceType = true;
};
this.$get = function() {
return deviceType
@benoitboucart
benoitboucart / gist:8810217
Last active August 29, 2015 13:56
FB Connect as a service in Angular JS
// Going mobile with Angular by Ari
// Source: https://speakerdeck.com/auser/going-mobile-with-angular?utm_source=ng-newsletter&utm_campaign=b5794c7e19-AngularJS_Newsletter_2_4_142_3_2014&utm_medium=email&utm_term=0_fa61364f13-b5794c7e19-96511737
angular.module('myApp')
.provider('FBService', function() {
function createScript($document, callback, success) {
var scriptTag = $document.createElement('script');
striptTag.async = true;
striptTag.src = '//conect.facebook.net/en_US/all.js';
scriptTag.onreadystatechange = function () {
if(this.readyState == 'complete') { callback(); }
@benoitboucart
benoitboucart / dabblet.css
Created January 4, 2014 12:39
CSS3 social icon hover effect
/**
* CSS3 social icon hover effect
* Read more on my blog: http://webbb.be/blog/
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@benoitboucart
benoitboucart / dabblet.css
Created May 11, 2013 07:25
CSS3 balancing hover effect
/**
* CSS3 balancing hover effect
* Read the tutorial here: http://webbb.be/blog/little-css3-3d-hover-effects/
*/
body {background: #f06;background: linear-gradient(45deg, #f06, yellow);min-height: 100%;}
.block {
width: 150px; color: #fff; margin: 30px auto; text-transform: uppercase; text-align: center; font-family: Helvetica;
position: relative;
perspective: 350;
@benoitboucart
benoitboucart / dabblet.css
Last active December 15, 2015 08:29
CSS3 3D Hover effects [2]
/**
* CSS3 3D Hover effects [2]
* See tutorial on: http://webbb.be/blog/little-css3-3d-hover-effects/
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%; text-align: center; margin-top: 3em;
}
@benoitboucart
benoitboucart / dabblet.css
Last active December 15, 2016 18:59
CSS3 3D Hover effects [1]
/**
* CSS3 3D Hover effects [1]
* See tutorial on http://webbb.be/blog/little-css3-3d-hover-effects/
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, red);
min-height: 100%;
}