Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function() {
$('#featured-location-0').show();
$("#ww_img").hover(
function () {
timer.stop();
},
jQuery.timer(200, function(timer) {
var current = parseInt($('.featured:visible').attr('id').split('-')[2]);

Pachamama’s

800 New Hampshire

Lawrence, KS 66044

(785) 841-0990

11 a.m. – 10 p.m. Every Day

<form name="mailing_list">
<input type="text" name="email" id="emailform">
<input type="button" id="go" value="Go!" onclick="subscribe();">
</form>
<script language="javascript">
function subscribe() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('POST', 'http://redlists.com/subscriptions/create', true);
xmlhttp.send("<?xml version='1.0' encoding='UTF-8'?><subscription><list_id>16</list_id><email>" +
# This program watches a file for changes. Whenever a change is made, it
# prints a message in the terminal.
require 'ftools'
log_file = "test.log"
last_change = File.mtime(log_file)
while(true)
if File.readable?(log_file) &&
[14:04:04] <npverni> anyone else notice myconf doesnt work..at...all?
[14:04:16] ← youssefchaker left IRC. ()
[14:04:52] <guitsaru> Yes
[14:05:27] <npverni> sort of gave up hope after seeing that make it to the top 3
[14:05:32] <MaD15> ya
[14:10:37] <chriswarren> yeah, voting has been very... interesting.
[14:10:58] <crookshanks> i gave up the first day
[14:11:41] <npverni> for awhile it seemed like the top 5 were pretty good
[14:12:16] <chriswarren> I'm just working on fixing what we made and looking forward to voting being over so I can roll out the changes. at this point I just want it done so I can work on making it in to a real app. the voting has disappointed me.
[14:12:26] <chriswarren> npverni: yeah, it did.
2008-09-12 16:23:49.032 gitx[18213:10b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '[NOTE: this exception originated in the server.]
*** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'
2008-09-12 16:23:49.039 gitx[18213:10b] Stack: (
2472784203,
2495611131,
2472782961,
2486589270,
2486587129,
2472806826,
2472806930
# I'm working on a site that has a fixed page height and should not scroll.
# Because of this, the amount of text displayed on a page needs to not exceed
# a maximum value. I wrote the following function to break a string into
# lines based on either line breaks, or the amount of characters that can fit
# across the div.
#
# Ruby 1.9 already has a function to break a string into lines;
# (http://www.ruby-doc.org/core/classes/String.html#M000775)
# however, this does not include the option to break up a line based on
# characters and I am still on Ruby 1.8.6.