On Mac Os 11 first install wget and tac
brew install wget
brew install coreutils| /** Creating and Deploying using Git, Github and PHP **/ | |
| Prerequisites: | |
| Server: SSH Acces, PHP, Git | |
| Local: SSH, Git | |
| 0.Create a PHP file in your project called "deploy.php" with this content: /*<?php `git pull`;*/ | |
| 1. Create Your Github Repo | |
| 2. Go to your project folder and initiate a git repository |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| // Photoshop Script to Create iPhone Icons from iTunesArtwork | |
| // Original: https://gist.github.com/appsbynight/3681050 | |
| // Turn debugger on. 0 is off. | |
| // $.level = 1; | |
| try | |
| { | |
| // Prompt user to select iTunesArtwork file. Clicking "Cancel" returns null. | |
| var iTunesArtwork = File.openDialog("Select a sqaure PNG file that is at least 1024x1024.", "*.png", false); |
| // _decimal.scss | MIT License | gist.github.com/terkel/4373420 | |
| // Round a number to specified digits. | |
| // | |
| // @param {Number} $number A number to round | |
| // @param {Number} [$digits:0] Digits to output | |
| // @param {String} [$mode:round] (round|ceil|floor) How to round a number | |
| // @return {Number} A rounded number | |
| // @example | |
| // decimal-round(0.333) => 0 |
| [data-slides] { | |
| background-image: url(../../uploads/banner1.jpg); /* Default image. */ | |
| background-repeat: no-repeat; | |
| background-position: center top; | |
| background-size: cover; | |
| transition: background-image 1s linear; | |
| } | |
| /* Use additional CSS to control the `height` of `[data-slides]`, like so: */ |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| // Brightness math based on: | |
| // http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
| $red-magic-number: 241; | |
| $green-magic-number: 691; | |
| $blue-magic-number: 68; | |
| $brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
| @function brightness($color) { | |
| // Extract color components |
| // ---- | |
| // libsass (v3.2.2) | |
| // ---- | |
| /*# Theme generator | |
| @see - Source : <http://www.developwithpurpose.com/creating-a-sass-theme-engine/> | |
| Styleguide theming | |
| */ |