Skip to content

Instantly share code, notes, and snippets.

# Copyright (c) 2010 AtTask, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
# Software.
#
(function() {
var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function() {
var totes = 0;
$('#result_list>tbody tr').each(function() {
var value = parseFloat($(this).find('td:nth-child(3)').text());
if (!isNaN(value)) {
@jasonwaters
jasonwaters / gist:9820048
Created March 27, 2014 22:03
search indexer error
DEBUG [Bulk Consumer - Thread3] 27 Mar 2014 15:51:14:351 [SearchIndexerBulkConsumer.processMessage()]: customerID: 53347016000000211bc8fb1d9b0c9e51
ERROR [Bulk Consumer - Thread3] 27 Mar 2014 15:51:14:363 [SearchIndexerBulkConsumer.onMessage()]: error processing message
com.attask.sdk.api.APIException: You are not currently logged in
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.jackson.map.introspect.AnnotatedConstructor.call1(AnnotatedConstructor.java:109)
at org.codehaus.jackson.map.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:263)
at org.codehaus.jackson.map.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:150)
@jasonwaters
jasonwaters / contains.html
Last active December 23, 2015 12:09
javascript contains method
<html>
<body>
<script type="text/javascript">
Object.prototype.contains = function(value) {
for(key in this) {
if(this.hasOwnProperty(key) && this[key] == value) {
return true;
}
}
return false;
package fm.setlist.client;
import java.net.URL;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import fm.setlist.api.model.Setlist;
public class Test {