Skip to content

Instantly share code, notes, and snippets.

View MoOx's full-sized avatar
:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)

Max Thirouin MoOx

:shipit:
Freelance React / React Native Expert, Cross-platform fanboy (native, web...)
View GitHub Profile
@MoOx
MoOx / README.md
Created May 26, 2012 12:12
Discovering CSS Pre-processor
@MoOx
MoOx / media-queries-width.scss
Created May 30, 2012 05:03
predefined sass media queries
//
// Predefined Media Queries Mixins
//
// @require sass-3.2 (you need eventually to do "sudo gem install sass --pre")
//
// @author Maxime Thirouin <maxime.thirouin@gmail.com>
//
// @link https://gist.github.com/2028061
// @link http://www.metaltoad.com/blog/simple-device-diagram-responsive-design-planning
@MoOx
MoOx / README.md
Created June 16, 2012 21:43
French translation for necolas/idiomatic-css

Principes d'écriture de CSS consistent et idiomatique

Le présent document liste des recommandations raisonnables pour développer avec CSS.

Il n'est pas destiné à être normatif et je ne souhaite pas imposer mes préférences de style de code aux gens. Toutefois, ces lignes directrices encouragent fortement le fait d'utiliser des modèles existants, communs et sensés.

Ceci est un document évolutif et les nouvelles idées sont toujours les bienvenues. Merci de contribuer.

@MoOx
MoOx / less2stylus.js
Created August 27, 2012 17:37 — forked from lancejpollard/less2stylus.coffee
Convert LESS to Stylus
// Usage : less2stylusDir('../src/css/');
var fs = require('fs');
// this less 2 stylus conversion script make a stylus easy to read syntax
// - let the braces
// - replace the @ for var as $
// - let semicolons
function less2stylus(less)
@MoOx
MoOx / gist:4124559
Created November 21, 2012 12:07
Test comment
test biatch
@import "shared";
// Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
//
// $name : (string or list, required) The name and optional SVG-ID to use.
// - string "simpleName" => name: simpleName, ID: #simpleName
// - list "name #id" => name: name, ID: #id
// $location : (string) The location of the font files - try to find in fonts_dir if none provided.
// - Locations include the file name, without extensions:
// 'simple' => 'simple.eot', 'simple.ttf', 'simple.woff'
@MoOx
MoOx / background.scss
Created December 12, 2012 08:54
Is there a sort of ternary operator in #Sass ?
//...
$background: null; // if you don't do this, background is undefined out of the @if/else scope
@if ($direction) {
$background: linear-gradient($direction, $color, $color2);
}
@else {
$background: linear-gradient($color, $color2);
}
//...
/*
* grunt-fontcustom
* https://github.com/MoOx/grunt-fontcustom
*
* Copyright (c) 2013 Maxime Thirouin, contributors
* Licensed under the MIT license.
*/
'use strict';
@MoOx
MoOx / main.js
Last active December 12, 2015 05:19
Zurb Foundation with RequireJS
requirejs.config({
name: "main",
shim: {
"foundation/jquery.cookie": { deps: ["jquery"] },
"foundation/jquery.event.move": { deps: ["jquery"] },
"foundation/jquery.event.swipe": { deps: ["jquery"] },
"foundation/jquery.foundation.accordion": { deps: ["jquery", "Modernizr"] },
"foundation/jquery.foundation.alerts": { deps: ["jquery"] },
"foundation/jquery.foundation.buttons": { deps: ["jquery"] },
@MoOx
MoOx / toggle.js
Last active December 12, 2015 09:39
Please show me how will you write that without jQuery please :) (It's not I'm not able to do it, but you already know that right ?)
// togglable ability (used for navbar)
$('.js-togglable').each(function() {
var togglableContainer = this;
$('.js-togglable__toggler', togglableContainer).on('click keyup', function() {
$('.js-togglable__item', togglableContainer).toggleClass('js-togglable__item--hide');
});
});