Skip to content

Instantly share code, notes, and snippets.

@Tonours
Tonours / gist:2071e4860f69f9a9b7c7748b49fed215
Last active June 20, 2017 14:54
Share breakpoints between JavaScript and Sass for webpack
// utils.js
/**
* Utils helpers
*/
/**
* isEmptyObject - Check if Object is Empty
* @param {Object} obj
* @return {Boolean}
* @example
@Tonours
Tonours / launcher.sh
Created February 8, 2016 08:01
Meteor launcher, because of npm high cpu issue https://github.com/meteor/meteor/issues/4314
#!/bin/bash
# Meteor commands launcher
PS3='Please select what you want to do: '
options=("Launch Meteor without settings" "Launch Meteor with Development settings" "Launch Meteor with Staging settings" "Launch Meteor with Production settings" "Setup the deployment on the Staging server" "Deploy the application to the Staging server" "Setup the deployment on the Production server" "Deploy the application to the Production server" "Reset Meteor" "Quit the launcher")
select opt in "${options[@]}"
do
case $opt in
"Launch Meteor without settings")
meteor
@Tonours
Tonours / fonts.scss
Last active August 29, 2015 13:58
Fonts
$fonts:
mama-shelter-bold mama_shelterbold bold normal,
mama-shelter-light mama_shelterlight lighter normal,
mama-shelter-regular mama_shelterregular normal normal;
@each $font in $fonts {
$font-name: nth($font, 1);
$font-id: nth($font, 2);
$font-weight: nth($font, 3);
$font-style: nth($font, 4);
// ==========================================================================
// Helpers
// ==========================================================================
// Switch ON/OFF
// ==========================================================================
$reset-margin: true;
$margin: true;
// ==========================================================================
// Helpers
// ==========================================================================
// Margin
// ==========================================================================
$orientations: top, right, bottom, left;
$dimensions: 5, 10, 15, 20;
@Tonours
Tonours / SassMeister-input.scss
Created October 25, 2013 05:04
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
$cols: (
half: 50%,
full: 100%,
third: 33.3333333%,
quarter: 25%,