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
$this->postmark->from('[email protected]', 'Jason Kruit'); | |
$this->postmark->message_plain($message_plain); | |
$this->postmark->message_html($message_html); | |
foreach($users as $user) { | |
$this->postmark->to($user['email']); | |
$this->postmark->send(); | |
} |
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
$('.dropdown a').click(function() { | |
$(this).parent().next().toggle(); | |
return false; | |
}); |
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 | |
foreach ($somethings as $thing) { | |
$count = 1; | |
if ($count == 4) { | |
echo "<div class='thing'>"; | |
?> | |
LOTS OF HTML CONTENT HERE | |
</div> <!-- close div --> | |
<? |
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
$page = 'page_7' | |
if ($page != 'page_5' || $page != 'page_6') { | |
// do page 1-4 logic | |
} elseif ($page == 'page_5') { | |
// do page 5 logic | |
} else { | |
// all other page logic | |
} |
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
$query = $this->db->get('table_name'); | |
$query->row(5); |
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
$expanded = 0; | |
$('.video img').click(function(){ | |
if($expanded == 0) { | |
$(this).animate({ | |
width: '720px' | |
}, 500, function(){ | |
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
$(document).ready(function(){ | |
var placeholder_text = 'Email Address'; | |
$('#input_field').focus(function(){ | |
if ($(this).val() == placeholder_text) { | |
$(this).val(''); | |
} | |
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
#!/usr/bin/ruby | |
trigger = ARGV.shift | |
if trigger == 'songstart' | |
songinfo = {} | |
STDIN.each_line { |line| songinfo.store(*line.chomp.split('=', 2))} | |
`growlnotify -t "Now Playing" -m "#{songinfo['title']}\nby #{songinfo['artist']}" -n 'pianobar' -a 'iTunes'` | |
end |
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
/*! | |
* Fuck Yeah Sticky Scroll v.1 | |
* | |
* Loosely based on | |
* Contained Sticky Scroll v1.1 | |
* By Matt Ward | |
* http://blog.echoenduring.com/2010/11/15/freebie-contained-sticky-scroll-jquery-plugin/ | |
* | |
* | |
* |
OlderNewer