Skip to content

Instantly share code, notes, and snippets.

View magsout's full-sized avatar
🦊
Coding and hacking around the world

Guillaume Démésy magsout

🦊
Coding and hacking around the world
View GitHub Profile
@magsout
magsout / install_sourcemaps
Last active December 29, 2015 13:09 — forked from Sebastian-Fitzner/compass.js
grunt-contrib-compass + sourcemaps
sudo gem install compass-sourcemaps --pre
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
@magsout
magsout / webpack.conf.js
Last active August 29, 2015 14:21
Simple webpack config
// webpack.config.js
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var path = require("path");
module.exports = {
// The standard entry point and output config
entry: {
app: "./app"
},
@magsout
magsout / SassMeister-input.scss
Created May 19, 2015 09:32
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$color : #D22C88;
.foo {
/*
border-top: solid 1px #22bfcc;
if (window.PointerEvent) {
elm.addEventListener('pointerdown', fn);
} else {
//Fallback support for browsers that do not yet support Pointer Events
elm.addEventListener('touchstart',fn);
elm.addEventListener('mousedown',fn);
}
/*
* Main class
* font-size : rem
* other properties : em
*/
.org-Component {
font-size: 1rem;
padding:1em;
}
/*
@magsout
magsout / README.md
Last active August 29, 2015 14:06 — forked from MoOx/README.md

PROJECT BLAH BLAH

Requirements

For development, you will only need Node.js installed on your environement. And please use the appropriate Editorconfig plugin for your Editor (not mandatory).

Node

Node is really easy to install & now include NPM.

/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();
@magsout
magsout / gulp.js
Last active August 29, 2015 14:01
var gulp = require('gulp');
// takes in a callback so the engine knows when it'll be done
gulp.task('one', function(cb) {
// do stuff -- async or otherwise
cb(err); // if err is not null and not undefined, the orchestration will stop, and 'two' will not run
});
// identifies a dependent task must be complete before this one begins
gulp.task('two', ['one'], function() {
/*------------------------------------*\
App
\*------------------------------------*/
.color
{
color: $mainColor;
}