This file contains hidden or 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
function TopLogger(url, sessionId) { | |
var self = this; | |
var sid = sessionId; | |
var counter = 0; | |
var entries = []; | |
function consoleLog(type, msg) { | |
if(consoleChain && consoleChain[type]) { | |
try { |
This file contains hidden or 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
import groovy.sql.Sql | |
import org.codehaus.groovy.control.CompilerConfiguration | |
import java.sql.Connection | |
class FactoryGrill extends Script { | |
private Connection connection; | |
private Sql sql; |
This file contains hidden or 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
// Source: http://code.google.com/p/gflot/source/browse/trunk/flot/base64.js?r=153 | |
/* Copyright (C) 1999 Masanao Izumo <[email protected]> | |
* Version: 1.0 | |
* LastModified: Dec 25 1999 | |
* This library is free. You can redistribute it and/or modify it. | |
*/ | |
/* | |
* Interfaces: |
This file contains hidden or 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
#Add this to your development.rb | |
config.middleware.use DogslowRack |
This file contains hidden or 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
$(function() { | |
var t = $('#thetable tbody').eq(0); | |
var r = t.find('tr'); | |
var cols= r.length; | |
var rows= r.eq(0).find('td').length; | |
var cell, next, tem, i = 0; | |
var tb= $('<tbody></tbody>'); | |
while(i<rows){ | |
cell= 0; |
This file contains hidden or 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
def destroy | |
#... | |
flash[:success] = t("entity_name.delete.success", :name => entity.name) | |
respond_to do |format| | |
format.html do | |
redirect_to :action=>:index | |
end | |
format.json { render :json => { | |
'delete-row'=>dom_id(entity)), | |
'flash-success' => flash.discard[:success]} } |
NewerOlder