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
| image: node:7.7.0 | |
| cache: | |
| key: "$CI_PROJECT_ID" | |
| paths: | |
| - node_modules/ | |
| before_script: | |
| - npm set progress=false |
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
| serialize: function serialize(form) | |
| { | |
| if (!form || form.nodeName !== "FORM") { | |
| return; | |
| } | |
| var i, j, | |
| obj = {}; | |
| for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
| if (form.elements[i].name === "") { | |
| continue; |
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
| /// Base path for assets (fonts, images...), | |
| /// should not include trailing slash | |
| /// @access public | |
| /// @type String | |
| $asset-base-path: '../assets' !default; | |
| /// Asset URL builder | |
| /// @access private | |
| /// @param {String} $type - Asset type, matching folder name | |
| /// @param {String} $file - Asset file name, including extension |
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 .sass files to scss files: | |
| bundle exec sass-convert -R --from sass --to scss ./public/stylesheets/sass/ | |
| # delete the old sass files: | |
| find ./public/stylesheets/sass -name "*.sass" | xargs rm | |
| # rename the directory. | |
| mv ./public/stylesheets/sass ./public/stylesheets/scss |
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
| module.exports = { | |
| port: 8000, | |
| globals: { | |
| $: 'jquery', | |
| jQuery: 'jquery', | |
| _: 'lodash', | |
| Backbone: 'backbone', | |
| Marionette: 'backbone.marionette', | |
| moment: 'moment' | |
| }, |
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
| // ==UserScript== | |
| // @name UTM param stripper | |
| // @author Paul Irish | |
| // @namespace http://github.com/paulirish | |
| // @version 1.2 | |
| // @description Drop the UTM params from a URL when the page loads. | |
| // @extra Cuz you know they're all ugly n shit. | |
| // @include http*://* | |
| // ==/UserScript== |
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
| // NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
| { | |
| // Settings | |
| "passfail" : false, // Stop on first error. | |
| "maxerr" : 100, // Maximum error before stopping. | |
| // Predefined globals whom JSHint will ignore. | |
| "browser" : true, // Standard browser globals e.g. `window`, `document`. |
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
| // Placeholder @mixin for Sass | |
| // Example usage (.scss): | |
| // | |
| // input { | |
| // @include placeholder { | |
| // /* styles for placeholder here */ | |
| // } | |
| // } | |
| // |
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 transparent($color, $alpha) { | |
| $rgba: rgba($color, $alpha); | |
| $ie-hex-str: ie-hex-str($rgba); | |
| background-color: transparent; | |
| background-color: $rgba; | |
| filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie-hex-str},endColorstr=#{$ie-hex-str}); | |
| zoom: 1; | |
| } |
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 box-shadow($shadow1, $shadow2:false, $shadow3:false, $shadow4:false, $shadow5:false) { | |
| $params: $shadow1; | |
| @if $shadow2 | |
| { $params: $shadow1, $shadow2; } | |
| @if $shadow3 != false | |
| { $params: $shadow1, $shadow2, $shadow3; } | |
| @if $shadow4 != false | |
| { $params: $shadow1, $shadow2, $shadow3, $shadow4; } | |
| @if $shadow5 != false | |
| { $params: $shadow1, $shadow2, $shadow3, $shadow4, $shadow5; } |
NewerOlder