Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
function travelDates () {
dateArray = new Array();
for (i=0; i < document.getElementsByName("date").length; i++) {
dateArray[i] = new Date(document.getElementsByName("date")[i].value);
}
badDates = 0;
for (i=0; i < dateArray.length - 1; i++) {
if (dateArray[i] < dateArray[i+1]) {
alert ("good");
function travelDates (elementName) {
dateArray = new Array();
for (i=0; i < document.getElementsByName(elementName).length; i++) {
dateArray[i] = new Date(document.getElementsByName(elementName)[i].value);
}
blankDates = 0;
for (i=0; i < document.getElementsByName(elementName).length; i++) {
if (document.getElementsByName(elementName)[i] == "MM/YY/YYYY" ||
document.getElementsByName(elementName)[i] == "") {
<?php
$isTALoggedIn = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Multidestination Search - classicvacations.com</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/search.css" />
<?php
$isTALoggedIn = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Multidestination Search - classicvacations.com</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/search.css" />
java.lang.Exception
at aaa$A.hashCode(aaa.scala:4)
at scala.collection.mutable.HashTable$class.elemHashCode(HashTable.scala:154)
at scala.collection.mutable.HashMap.elemHashCode(HashMap.scala:33)
at scala.collection.mutable.HashTable$class.findEntry(HashTable.scala:66)
at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
at scala.collection.mutable.HashMap.findEntry(HashMap.scala:33)
at scala.collection.mutable.DefaultMapModel$class.update(DefaultMapModel.scala:38)
at scala.collection.mutable.HashMap.update(HashMap.scala:33)
at aaa$.main(aaa.scala:16)
import java.net._
import scala.collection.immutable._
import scala.io._
import org.saunter.bencode._
import scalax.io._
import scalax.io.Implicits._
import scalax.data.Implicits._
def domains():
return cursor.fetch_all_domains()
def domain_whitelist_entries(domain):
return cursor.fetch_all_whitelists()
dict([(x, domain_whitelist_entries(x)) for x in domains])
import sys
import time
import types
from traceback import extract_stack, format_list
def wrap_func(base_class, f):
old_func_name = 'old%s' % (f.__name__,)
if hasattr(base_class, f.__name__):
setattr(base_class, old_func_name,
getattr(base_class, f.__name__))
var mimic = {
history: {},
get_history: function(k) {
if (k in mimic.history) return mimic.history[k];
mimic.history[k] = [];
return mimic.history[k];
},
record: function(root, priv, not_recursive) {
function inspect(obj, path) {
_.each(obj, function(v, k) {
$(document).ready(function() {
alert(bt.torrent.all());
});