Updated this for the first time in awhile in late 2020.
- Enable iCloud
- Disable iCloud mail
- Display to medium
- Turn up trackpad speed
<?php | |
/** Development settings. | |
* | |
* These are some customs settings that allow us to import arbitrary WordPress | |
* databases and run them within our development environment without any additional | |
* configuration. Append this to your regular wp-config.php file and customize as needed. | |
* | |
* @link http://gist.github.com/gists/173574 | |
*/ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Border Image Test</title> | |
<style type="text/css"> | |
#slider { | |
/*This shows how to use border-image to mimic the behavior | |
of stretchableImageWithLeftCapWidth:topCapHeight: in CSS. | |
This example has a border-left and border-right width of 15px. |
-delete the remote | |
>> git push [remote] :[branch] | |
-delete the local | |
>> git branch -d [branch] | |
ex. | |
git push origin :dev1 | |
git branch -d dev1 |
/** | |
* Define our parser class. It takes in some text, and then you can call "linkifyURLs", or one of the other methods, | |
* and then call "getHTML" to get the fully parsed text back as HTML! | |
* @param text that you want parsed | |
*/ | |
function Parser(text) { | |
var html = text; | |
var urlRegex = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi; |
$.extend({ | |
includeCss: function(cssLink, isPrint, callbackFn) { | |
var $head = $("head"); | |
//Make sure it's a valid string and not already included in the head | |
if (typeof cssLink === "string" && cssLink.length > 1 && $head.find("link[href='" + cssLink + "']").length <= 0) { | |
//Create a new link element | |
var $newLinkTag; | |
var mediaType = (isPrint) ? 'print' : 'all'; | |
//Needed for IE8 and lower |
<?php | |
//would be controllers/pg.php | |
class pg extends Controller { | |
var $pgItem; | |
var $parentPage; | |
function pg() { | |
//do some constructor related stuff here | |
} | |
function permalink($segments) { |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# This is a work in progress. I use it in production and it works very well, but use at your own risk! | |
@initCJAX = () -> | |
History = @History | |
$ = @jQuery | |
document = @document | |
return false unless @History.enabled | |
$ -> | |
contentSelector = ".main" |
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
$ curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/7e4d2178e3733bed18fdfe737277c3cb72241d39/powssl > ~/bin/powssl
$ chmod +x ~/bin/powssl
$ powssl