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 Usage: http://codepen.io/o0110o/pen/gpdKYp | |
| /** | |
| * Pad | |
| * @param {String} | |
| * @param {String} | |
| * @param {Integer} | |
| * @return {String} | |
| */ | |
| // Borrowed from: https://github.com/o0110o/meta-js/blob/master/src/util.js |
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
| // Save data with expiry date | |
| var app = { | |
| data: '' | |
| }; | |
| // Enhanced localStorage with expiry | |
| app.data = { | |
| save: function(storageKey, value, expiry) { | |
| if (!expiry) { | |
| expiry = "360"; // Default expiry of 6 hours |
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
| INSTALL: | |
| sudo pacman --noconfirm -S apache php php-apache | |
| RUN THIS COMMAND: | |
| sudo nano /etc/httpd/conf/httpd.conf | |
| EDIT THESE LINES IN THE /etc/httpd/conf/httpd.conf FILE: | |
| - Add: LoadModule php5_module modules/libphp5.so | |
| - Add: Include conf/extra/php5_module.conf | |
| - Update: ServerName localhost:80 |
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
| // define asset paths | |
| viewPath = 'view/'; | |
| clientPath = 'client/'; | |
| designPath = 'design/'; | |
| // cache some vars | |
| $doc = $(document); | |
| $app = $("#application"); | |
| // initial page view |
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
| #!/usr/bin/env bash | |
| # Fix Cnchi on Antergos LiveCD (2015.06.22) | |
| sudo pacman -S git && sudo rm -rf /usr/share/cnchi && git clone https://github.com/Antergos/cnchi --depth=1 && cd cnchi && ./run |
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 strict'; | |
| module.exports = function(grunt) { | |
| var pkg = require('./package.json'); | |
| require('load-grunt-tasks')(grunt); | |
| grunt.initConfig({ | |
| env: { |
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
| # INSTRUCTIONS | |
| # ============== | |
| # IMPORTANT NOTICE: | |
| # “catalyst-test”, from AUR, contains the “latest” AMD/ATI testing/beta drivers, primarily for newer cards. | |
| # Please note that Radeons HD 2 3 4 xxx ARE NOT SUPPORTED | |
| # Reference: https://aur.archlinux.org/packages/catalyst-test/ | |
| # Reference: https://wiki.archlinux.org/index.php/AMD_Catalyst | |
| # Reference: http://www.ramblgyrl.com/2014/11/install-catalyst-drivers-on-arch-linux/ | |
| # ============== |
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
| # PUT HERE: /usr/lib/systemd/system/rc-local-shutdown.service | |
| [Unit] | |
| Description=/etc/rc.local.shutdown Compatibility | |
| ConditionFileIsExecutable=/etc/rc.local.shutdown | |
| DefaultDependencies=no | |
| After=rc-local.service basic.target | |
| Before=shutdown.target | |
| [Service] | |
| Type=oneshot |
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
| #!/usr/bin/env bash | |
| # Bootstrap for Antergos | |
| # Major Updates | |
| # (2015.09.05) | |
| # (2015.05.19) | |
| # Clear the package cache | |
| sudo pacman -Scc |
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
| <b>AJAX Calls</b><hr> | |
| <div> | |
| <button class='toggle-text'>This is XHR</button> | |
| </div> |