Skip to content

Instantly share code, notes, and snippets.

View flexbox's full-sized avatar

David Leuliette flexbox

View GitHub Profile
@flexbox
flexbox / gmaps-poi.coffee
Created February 5, 2014 13:57
[coffeescript] - Remove useless POI in google maps
window.onload = ->
styles = [
featureType: "poi"
stylers: [visibility: "off"]
]
styledMap = new google.maps.StyledMapType(styles,
name: "Styled Map"
)
mapOptions =
zoom: 11
@flexbox
flexbox / header-background.css
Last active August 29, 2015 13:57
[css] - header backgound animate
.header-image {
animation: 35s linear 0s normal none infinite movebg;
background: url("/playground/uploads/upload/upload/289/bkgd3.jpg") repeat scroll 0 0 rgba(0, 0, 0, 0);
margin-top: -80px;
padding-bottom: 7em;
padding-top: 160px;
}
@-moz-keyframes movebg {
0% {
<-- Script tag that will hold jQuery -->
<script id="js-jquery"></script>
<-- Determine if jQuery should be loaded from localStorage or the server -->
<script>
var jqFile;
if ('jqFile' in window.localStorage) {
// 1. The script is already stored
jqFile = window.localStorage.getItem('jqFile');
} else {
<html>
...
<script id="js-module-lazy">
/*
JavaScript commented code
*/
</script>
<script>
function lazyLoad(){
@flexbox
flexbox / terminal.shell
Created June 3, 2014 09:20
Get out the hell with brew
brew version wtf-formula
cd /usr/local/Library/Formula
git checkout sha-of-da-commit
brew install wtf-formula
@flexbox
flexbox / comment.markdown
Created June 5, 2014 09:14
open source algorithm gardener
@flexbox
flexbox / magellan-hide.css
Last active August 29, 2015 14:05
Show / hide magellan expedition in page. See the demo http://tallwave.com/
.is-hidden {
display:none;
}
@flexbox
flexbox / datas.yml
Last active August 29, 2015 14:08
data each for yml file matrix
main:
- label: Femme
css_class: m-menu--item-main
submenu:
- entry: Modèle
categories:
- data: "Ballerines et babies"
- data: "Mules & sabots"
- data: "Sandales et nu-pieds"
- data: "Chaussons"
@flexbox
flexbox / linkStyle.css
Created July 26, 2012 10:23
CSS3 : Style des liens en fonction des types de fichiers
/* Liens externes */
a[rel="external"]{
font-size:16px;
}
/* Liens Email
Le selecteur ^= permet de cibler tous les liens commençant par mailto:
:before ajoute une entite sous forme d'icone
*/
a[href^="mailto:"]:before{
@flexbox
flexbox / buttonNoImage.css
Created July 26, 2012 10:31
CSS3 : Boutons avec des icones sans images
.buttons
{
display: inline-block;
background: #eeeeee; /* Old browsers */
background: -moz-linear-gradient(top, #eeeeee 0%, #eeeeee 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */