Skip to content

Instantly share code, notes, and snippets.

View zackkitzmiller's full-sized avatar
🏗️
Working from home

Zack Kitzmiller zackkitzmiller

🏗️
Working from home
View GitHub Profile
$this->postmark->from('sender@domain.com', '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();
}
$('.dropdown a').click(function() {
$(this).parent().next().toggle();
return false;
});
<?php
foreach ($somethings as $thing) {
$count = 1;
if ($count == 4) {
echo "<div class='thing'>";
?>
LOTS OF HTML CONTENT HERE
</div> <!-- close div -->
<?
We couldn’t find that file to show.
$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
}
$query = $this->db->get('table_name');
$query->row(5);
$expanded = 0;
$('.video img').click(function(){
if($expanded == 0) {
$(this).animate({
width: '720px'
}, 500, function(){
$(document).ready(function(){
var placeholder_text = 'Email Address';
$('#input_field').focus(function(){
if ($(this).val() == placeholder_text) {
$(this).val('');
}
@zackkitzmiller
zackkitzmiller / pianobar.rb
Created April 11, 2011 18:33
ruby script for growl notify with pianobar
#!/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
/*!
* 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/
*
*
*