Install Homebrew - http://brew.sh/
Install Python via brew
brew install python
Check your Python version
<?php | |
// ------------------------------------------------------------------------- | |
// Signed Request | |
// http://developers.facebook.com/docs/howtos/login/signed-request/ | |
/** | |
* @param string $signed_request | |
* @return array | |
*/ | |
function parse_signed_request($signed_request) |
tail -f /var/log/apache2/error.log |
/* =WordPress Core | |
-------------------------------------------------------------- */ | |
@wpmarginright:5px 0 20px 20px; | |
@wpmarginleft:5px 20px 20px 0; | |
.alignnone { margin:@wpmarginleft; } | |
.aligncenter, | |
div.aligncenter { | |
display:block; |
<VirtualHost *:80> | |
ServerName __domain__ | |
ServerAlias __domainalias__ | |
DocumentRoot /Users/jjames/Sites/__folder__/ | |
<Directory /Users/jjames/Sites/__folder__/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny |
// Wicked credit to | |
// http://www.zachstronaut.com/posts/2009/01/18/jquery-smooth-scroll-bugs.html | |
var scrollElement = 'html, body'; | |
$('html, body').each(function () { | |
var initScrollTop = $(this).attr('scrollTop'); | |
$(this).attr('scrollTop', initScrollTop + 1); | |
if ($(this).attr('scrollTop') == initScrollTop + 1) { | |
scrollElement = this.nodeName.toLowerCase(); | |
$(this).attr('scrollTop', initScrollTop); | |
return false; |
.columnflush(@x,@columns:@columns) { | |
display: inline; | |
float: left; | |
width: @total-width*((((@gutter-width+@column-width)*@x)) / @gridsystem-width); | |
} | |
.columnflushleft(@x,@columns:@columns) { | |
display: inline; | |
float: left; | |
width: @total-width*((((@gutter-width+@column-width)*@x)-(@gutter-width*.5)) / @gridsystem-width); |
<?php | |
/** | |
* Function to redirect browser to a specific page | |
*/ | |
function redirect($url) | |
{ | |
if ( ! headers_sent() ) | |
{ | |
header('Location: '.$url); | |
} |
<?php | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
<VirtualHost *:80> | |
ServerAdmin __adminemail__ | |
ServerName __domain__ | |
ServerAlias __domainalias__ | |
DocumentRoot /var/www/__path__/ | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> |
Install Homebrew - http://brew.sh/
Install Python via brew
brew install python
Check your Python version