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 Math { | |
| /** | |
| * The base. | |
| * | |
| * @var string | |
| */ | |
| private static $base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
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
| @if ($paginator->hasPages()) | |
| <ul class="uk-pagination"> | |
| {{-- Previous Page Link --}} | |
| @if ($paginator->onFirstPage()) | |
| <li class="uk-disabled"><span>«</span></li> | |
| @else | |
| <li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li> | |
| @endif | |
| {{-- Pagination Elements --}} |
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
| $.fn.serializeJSON = function() { | |
| var data = {}; | |
| var source = this.serializeArray(); | |
| $.each(source, function () { | |
| if (data[this.name]) { | |
| if ( ! data[this.name].push) { | |
| data[this.name] = [data[this.name]]; | |
| } | |
| data[this.name].push(this.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
| ["change", "keyup", "paste", "input", "propertychange", "..."].forEach(function(event) { | |
| document.querySelectorAll('.element').addEventListener(event, function() { | |
| // Your callback here | |
| }, 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
| RewriteRule ^assets/css/(.*) wp-content/themes/[theme_name]/assets/css/$1 [QSA,L] | |
| RewriteRule ^assets/js/(.*) wp-content/themes/[theme_name]/assets/js/$1 [QSA,L] | |
| RewriteRule ^assets/img/(.*) wp-content/themes/[theme_name]/assets/img/$1 [QSA,L] | |
| RewriteRule ^plugins/(.*) wp-content/plugins/$1 [QSA,L] |
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 that while this file is in our config folder, it is | |
| # symlinked to our site folders, so paths are relative from there | |
| # Require gems and Compass plugins | |
| # require 'rgbapng' | |
| # require 'compass-fancybox-plugin' | |
| require 'compass-growl' | |
| # General | |
| output_style = :expanded |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <style> | |
| @keyframes myAnimation { | |
| 0%, 100% { transform: rotate(-3deg); } | |
| 50% { transform: rotate(3deg); } | |
| } |
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
| /* Gmail style scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 12px | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| border-width: 1px 1px 1px 2px | |
| } | |
| ::-webkit-scrollbar-track { | |
| border-width: 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
| // SmoothScroll for websites v1.2.1 | |
| // Licensed under the terms of the MIT license. | |
| // People involved | |
| // - Balazs Galambosi (maintainer) | |
| // - Michael Herf (Pulse Algorithm) | |
| (function(){ | |
| // Scroll Variables (tweakable) |