This file contains 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
/** | |
* http://stackoverflow.com/questions/13459718/could-not-serialize-object-cause-of-hibernateproxy | |
* | |
* in bootstrap: | |
* import hbadapter.HibernateProxyTypeAdapter | |
* | |
* class BootStrap { | |
* | |
* def init = { servletContext -> | |
* |
This file contains 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
FormHelper = { | |
getFormData: function(event, allowEmpty) { | |
var allowEmpty = 'boolean' === typeof allowEmpty ? allowEmpty : true; | |
var form = event.target ? $(event.target) : event; | |
var data = {}; | |
form.find('input[type="hidden"][name], input[type="text"][name], input[name]:checked, textarea[name], select[name]').each(function(i) { | |
var keys = $(this).attr('name').replace(/\]/g, '').split('['); | |
var marker; | |
for (var i = 0; i < keys.length; i++) { |
This file contains 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
// GSON can parse the data. | |
// | |
// Deserialization: | |
// Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects. | |
// To work around this, use the ExclusionStrategy below or downgrade to 1.7.1 | |
// See more here: https://code.google.com/p/google-gson/issues/detail?id=440 | |
// | |
// Serialization: | |
// <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control | |
// access to the actual data instead of storing them in fields and it is therefore them we need to register a |
This file contains 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
/** | |
* Tabzilla global navigation for Mozilla projects | |
* | |
* This code is licensed under the Mozilla Public License 1.1. | |
* | |
* Portions adapted from the jQuery Easing plugin written by Robert Penner and | |
* used under the following license: | |
* | |
* Copyright 2001 Robert Penner | |
* All rights reserved. |
This file contains 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
// Due to some interest, I created a proper repo. | |
// Check it out! :) | |
// https://github.com/rigwild/discord-self-bot-console |