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 MyCoolThing(options) { | |
// default options | |
this.options = { | |
feature: false, | |
timeOut: 4000, | |
title: 'Feature title' | |
}; | |
// override default options |
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
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Cache\Repository; | |
class ThrottleMiddleware | |
{ | |
public $cache; |
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
<?php | |
class FlatDB { | |
public $storageFileLocation = __DIR__ . "/../storage/flatdb"; | |
public $storageFolderLocation = __DIR__ . "/../storage"; | |
public $errors; | |
public $cacheFile; | |
public $cacheChanged = 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
(function() { | |
var start = null; | |
var scrollPosition = window.scrollY; | |
var halfWindowHeight = window.innerHeight / 2; | |
var rAFstarted = false; | |
var scrollnimates = [].slice.call(document.getElementsByClassName('scrollnimate')); | |
// get their offset from top of screen and their scroll speed | |
scrollnimates.forEach( function ( sn ) { |
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 imgPreloader () { | |
this.images = new Array(); | |
this.addImages = function(images) { | |
var self = this; | |
if(!images) return; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Flex</title> | |
<link rel="stylesheet" href="https://gist.githubusercontent.com/ovdojoey/08d310ee8c07ac36330a/raw/ef31781517bc73f052977de26145a52996b9f8e0/juiced_v0.1.css"> | |
<style> | |
#container-test{ | |
color: #fff; |
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
.container,.container.dir-row{-webkit-box-direction:normal;-webkit-box-orient:horizontal}.container,.container.dir-row,.container.dir-row-reverse{-webkit-box-orient:horizontal}body,html{margin:0;padding:0}.container{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;max-width:1275px;margin:auto;box-sizing:border-box}.container.inline-flex{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.container.dir-row{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.container.dir-row-reverse{-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-dir |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>LinkJax Test</title> | |
</head> | |
<body> | |
<a href="test.html" class="linkjax" data-target="#id">test</a> | |
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
/** | |
* linkjax.js v1.0.0 | |
* http://www.joeylea.com | |
* | |
* hijack links on page and turns them into AJAX loaded content | |
* | |
* Licensed under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
*/ |