mac下安装php-cgi有多种方法,这里只介绍比较简单的两个方法;
- 用brew安装
- 直接下载安装XAMPP
如果安装了xcode,那么推荐使用brew来安装php。详细使用方法见官网,这里只说明如何装php-cgi;
| Github最近访问不了,hosts加入以下两行解决: | |
| 185.31.17.184 github.global.ssl.fastly.net | |
| 185.31.17.184 github-camo.global.ssl.fastly.net |
mac下安装php-cgi有多种方法,这里只介绍比较简单的两个方法;
如果安装了xcode,那么推荐使用brew来安装php。详细使用方法见官网,这里只说明如何装php-cgi;
| /** | |
| * User Timing polyfill (http://www.w3.org/TR/user-timing/) | |
| * @author RubaXa <trash@rubaxa.org> | |
| */ | |
| (function (window){ | |
| var | |
| startOffset = Date.now ? Date.now() : +(new Date) | |
| , performance = window.performance || {} | |
| , _entries = [] |
| Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User | |
| Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User | |
| Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
| [ | |
| { | |
| "button": "button1", | |
| "count": 1, | |
| "modifiers": ["ctrl"], | |
| "press_command": "drag_select", |
| [ | |
| { | |
| name:"HTML5", | |
| uri:"http://www.w3.org/TR/html5/single-page.html", | |
| category:"markup" | |
| }, | |
| { | |
| name:"HTML 5.1", | |
| uri:"http://www.w3.org/TR/html51/single-page.html", | |
| category:"markup" |
Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?
With the aid of [the Github API][1] and any online request app this is a piece of cake!
Just follow these steps:
https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/headshttps://api.github.com/repos/<AUTHOR>/<REPO>/git/refs with the following as the POST body :| #!/usr/bin/sh | |
| # Scipt for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion) | |
| mkdir /tmp/mcrypt | |
| cd /tmp/mcrypt | |
| curl --location --progress-bar http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download | tar -zx | |
| curl --location --progress-bar http://us.php.net/get/php-5.3.13.tar.gz/from/nl.php.net/mirror | tar -zx |
| // Full Blog Post: http://viget.com/extend/time-based-animation | |
| // requestAnimationFrame() polyfill: https://gist.github.com/1579671 | |
| window.APP = window.APP || {}; | |
| APP.pause = function() { | |
| window.cancelAnimationFrame(APP.core.animationFrame); | |
| }; | |
| APP.play = function() { |