mysqldump --all-databases > all_databases.sql
wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| #set -o xtrace | |
| __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| __file="${__dir}/$(basename "${BASH_SOURCE[0]}")" | |
| __base="$(basename ${__file} .sh)" |
| /** | |
| * jQuery plugin for adding hero image background animation | |
| * | |
| * Zooms, blurs, and fades background image on scroll down. | |
| * | |
| * @author Cosmo Mathieu <cosmo@cosmointeractive.co> | |
| */ | |
| // jquery-ps-background-animate.js | |
| /*! |
| #target photoshop | |
| function main() { | |
| if (!documents.length) return; | |
| var doc = activeDocument; | |
| var oldPath = activeDocument.path; | |
| for (var a = 0; a < doc.layerSets.length; a++) { | |
| activeDocument.activeLayer = activeDocument.layers.getByName(doc.layerSets[a].name); | |
| dupLayers(); | |
| activeDocument.mergeVisibleLayers(); | |
| activeDocument.trim(TrimType.TRANSPARENT, true, true, true, true); |
| // encode(decode) html text into html entity | |
| var decodeHtmlEntity = function(str) { | |
| return str.replace(/&#(\d+);/g, function(match, dec) { | |
| return String.fromCharCode(dec); | |
| }); | |
| }; | |
| var encodeHtmlEntity = function(str) { | |
| var buf = []; | |
| for (var i=str.length-1;i>=0;i--) { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Example</title> | |
| <meta name="description" content="This is just an example"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="css/main.css"> | |
| </head> | |
| <body data-modules="foobar, lorem/ipsum"> |
| <?php | |
| class MCAPI { | |
| var $version = "1.3"; | |
| var $errorMessage; | |
| var $errorCode; | |
| /** | |
| * Cache the information on the API location on the server | |
| */ | |
| var $apiUrl; |
| <?php | |
| /** | |
| * A PHP json object template for dealing with php and ajax form submissions | |
| * | |
| * Provides a framework (for lack of better words) for dealing with ajax | |
| * form submissions. Provides an example of how the php and JavaScript code | |
| * should be formatted. | |
| * | |
| * @author Cosmo Mathieu <cosmo@cosmointeractive.co> | |
| */ |
| // Main containers | |
| .container | |
| @include outer-container | |
| // Rows | |
| .row | |
| @include row() | |
| // A basic column without a defined width or height |