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
    
  
  
    
  | // True or False | |
| const trueOrFalse = () => | |
| Boolean(Math.random() > .5) | |
| // Random Float | |
| const randomFloat = (min, max) => | |
| Math.random() * (max - min) + min | |
| // Random Number | |
| const randomNumber = (min, max) => | 
  
    
      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
    
  
  
    
  | // Prefix mixins | |
| // ------------- | |
| // Example use: | |
| // @include transition(transform 500ms, box-shadow 500ms); | |
| @mixin transition ($values...) { | |
| -webkit-transition: $values; | |
| -ms-transition: $values; | |
| transition: $values; | |
| } | 
  
    
      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
    
  
  
    
  | /** | |
| * @example | |
| * | |
| * import {getLocation} from './services/getLocation'; | |
| * getLocation().then(res => { | |
| * console.log(res); | |
| * }); | |
| * | |
| * @returns {Promise<any>} | |
| */ | 
  
    
      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
    
  
  
    
  | <div class="video-wrapper"> | |
| <iframe width="560" height="315" src="https://www.youtube.com/embed/jEnd8JIMii4?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe> | |
| </div> | 
  
    
      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
    
  
  
    
  | .parallax-window { | |
| max-height: 30em; | |
| overflow: hidden; | |
| position: relative; | |
| text-align: center; | |
| width: 100%; | |
| } | |
| .parallax-static-content { | |
| color: #9A9A8A; | 
  
    
      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
    
  
  
    
  | <h1 class="test">Responsive: </h1> | 
  
    
      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
    
  
  
    
  | /** | |
| * @param l {Number} Length of random string. | |
| * @returns {string} String of random numbers | |
| * @constructor | |
| */ | |
| function MakeId(l) { | |
| var text = "", | |
| possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| for (var i = 0; i < l; i++) | |
| text += possible.charAt(Math.floor(Math.random() * possible.length)); | 
  
    
      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 debounce(fn, wait, immediate) { | |
| var timeout; | |
| return function() { | |
| var context = this, args = arguments; | |
| var later = function() { | |
| timeout = null; | |
| if (!immediate) func.apply(context, args); | |
| }; | |
| var callNow = immediate && !timeout; | |
| clearTimeout(timeout); | 
  
    
      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
    
  
  
    
  | /** | |
| * JS Throttle Function | |
| * @example | |
| $('body').on('mousemove', throttle(function (event) { | |
| console.log('tick'); | |
| }, 1000)); | |
| * | |
| * @param fn {Function} callback function | |
| * @param threshhold {Number} Threshold in milliseconds | |
| * @param scope {object} Scope to pass into function. | 
  
    
      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 parallax() { | |
| window.onscroll = function() { | |
| var speed = 5.0; | |
| document.body.style.backgroundPosition = (-window.pageXOffset/speed)+"px "+(-window.pageYOffset/speed)+"px"; | |
| } | |
| } |