This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _PREFIX = ''; | |
var _SHORTNAME = '<your-project-shortname>'; | |
var _BASE = ''; | |
var _SOURCE = _BASE+'dev/'; | |
var _TARGET = _BASE+'static/'; | |
var _API_PLACEHOLDER = '$API_URL'; // String in your JS files that gets replaced with the correct API url | |
var _DEV_API_URL = '<path-to-where-your-dev-api-lives>'; | |
var _ACC_API_URL = '<path-to-where-your-acceptation-api-lives>'; | |
var _PROD_API_URL = '<path-to-where-your-production-api-lives>'; | |
var _HEADER = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _PREFIX = ''; | |
var _SHORTNAME = '<your-project-shortname>'; | |
var _BASE = ''; | |
var _SOURCE = _BASE+'build/'; | |
var _TARGET = _BASE+'app/includes/'; | |
var _HEADER = [ | |
'/*', | |
'', | |
' Your Project Name', | |
' v1.0', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//requirements | |
'use strict'; | |
// IF YOU USE $ASSETPATH IN YOUR JS FILES, IT WILL GET REPLACED BY GULP TO A VALUE YOU SET HERE. | |
var _ASSETPATH = '$ASSETPATH'; | |
var _LOCAL_ASSETPATH = 'assets' | |
var _MURA_ASSETPATH = '/plugins/banning/includes/assets' | |
// GULP DEFAULTS | |
var gulp = require('gulp'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CONVERT HEX COLOR TO RGBA | |
@mixin rgba-color($t,$c,$o:1){ | |
$rgba: rgba($c,$o); | |
#{$t}: #{$rgba}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin keyframes($animation-name) | |
@-webkit-keyframes $animation-name | |
@content; | |
@-moz-keyframes $animation-name | |
@content; | |
@-ms-keyframes $animation-name | |
@content; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Convert angle | |
/// @param {Number} $value - Value to convert | |
/// @param {String} $unit - Unit to convert to | |
/// @return {Number} Converted angle | |
@function convert-angle($value, $unit) { | |
$convertable-units: deg grad turn rad; | |
$conversion-factors: 1 (10grad/9deg) (1turn/360deg) (3.1415926rad/180deg); | |
@if index($convertable-units, unit($value)) and index($convertable-units, $unit) { | |
@return $value | |
/ nth($conversion-factors, index($convertable-units, unit($value))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true*/ | |
/*global $*/ | |
/* | |
// NEEDS JQUERY | |
This script will move elements in the code to other elements based on the size of the screen. | |
You define what it has to move in the html using data attributes. | |
Those attributes are: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function pow($number, $exp) { | |
$value: 1; | |
@if $exp > 0 { | |
@for $i from 1 through $exp { | |
$value: $value * $number; | |
} | |
} | |
@else if $exp < 0 { | |
@for $i from 1 through -$exp { | |
$value: $value / $number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |