This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @group Clearfix */ | |
{YOUR SELECTOR}:after { | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} /* Clearfix */ | |
* html {YOUR SELECTOR} { zoom: 1; display: block; } /* Clearfix - IE6 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require( 'persistent.class.php' ); | |
class Episode extends Persistent { | |
public $series; | |
public $season; | |
public $number; | |
public $airdate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
$out = fopen('php://output', 'w'); | |
$headerRow = array(); | |
foreach( array_keys($result[0]) as $fieldname ) { | |
$headerRow []= isset($fields[$fieldname]) ? $fields[$fieldname]['title'] : $fieldname; | |
} | |
fputcsv($out, $headerRow ); | |
foreach( $result as $row ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In /etc/hosts: | |
127.0.0.1 test.site | |
In your httpd.conf: | |
NameVirtualHost * | |
<VirtualHost *> | |
ServerName test.site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Database class | |
* | |
* @author Mark James | |
* @package | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://github.com/ImDom/BeaconPush-PHP/blob/master/jquery.beaconpush.js"></script> | |
<script> | |
Beacon.connect('AAAAAAA', ['channelname'], {log:false}); | |
$.BeaconPush.addEventListener('update', function(event) { | |
setData( event.data ); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* | |
The .unit class indicates a single page item (e.g. a latest news list). Units cannot be nested. | |
The .group class indicates a collection of units. | |
*/ | |
.unit:before, .unit:after, .group:before, .group:after { content: "\0020"; display: block; height: 0; overflow: hidden; } | |
.unit:after, .group:after { clear: both; } | |
.unit, .group { zoom: 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch_and_add_brackets { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/' | |
} | |
PS1="\[\033[0;37m\]\h:\u\[\033[0m\] \W\[\033[0;32m\]\$(parse_git_branch_and_add_brackets) \[\033[0m\]\$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following commands | |
# need to be run once to set-up git | |
# Install git (you may have this already, type git then hit [ENTER] in Terminal to check) | |
cd ~/Downloads && curl -OL "http://git-osx-installer.googlecode.com/files/git-1.7.6-x86_64-snow-leopard.dmg" && open ~/Downloads/git-1.7.6-x86_64-snow-leopard.dmg | |
# Start a new Terminal window | |
# I don't have a command for this one | |
# Install the Git Flow extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SalesList .FrontItem:before, #SalesList .FrontItem:after { content: "\0020"; display: block; height: 0; overflow: hidden; } | |
#SalesList .FrontItem:after { clear: both; } | |
#SalesList .FrontItem { zoom: 1; } |
OlderNewer