Skip to content

Instantly share code, notes, and snippets.

View eddievlagea's full-sized avatar

Eddie Vlagea eddievlagea

View GitHub Profile
Ext.define('Wallet2.view.com.NumtextField', {
extend : 'Ext.field.Text',
xtype : 'numtextfield',
initialize: function() {
var me = this,
input = me.getInput().element.down('input');
input.set({
pattern : '[0-9]*'
30 Jul 2012 14:30:08,429 DEBUG [stractHandlerExceptionResolver: 132] Resolving exception from handler [public ro.grapefruit.bravatar.webforms.util.FormResponse ro.grapefruit.bravatar.controllers.RegistrationController.savePerson(ro.grapefruit.bravatar.webforms.PersonForm,org.springframework.validation.BindingResult)]: org.springframework.dao.DataAccessResourceFailureException: can't say something; nested exception is com.mongodb.MongoException$Network: can't say something
30 Jul 2012 14:30:08,429 DEBUG [SimpleMappingExceptionResolver: 190] Resolving to default view 'errors/500' for exception of type [org.springframework.dao.DataAccessResourceFailureException]
30 Jul 2012 14:30:08,429 DEBUG [SimpleMappingExceptionResolver: 311] Exposing Exception as model attribute 'exception'
{
"locale": {
"dashboard":{
"DASHBOARD_TITLE": "OTP Bank",
},
"global": {
"LABEL_CANCEL":"Cancel",
"LABEL_DONE":"Done",
@eddievlagea
eddievlagea / sc-dl.js
Created March 5, 2012 21:34 — forked from pheuter/sc-dl.js
Bookmarklet that generates download link for a Soundcloud upload
(function(d) {
var dl = d.createElement('a');
dl.innerText = 'Download MP3';
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1];
dl.download = d.querySelector('em').innerText+".mp3";
d.querySelector('.primary').appendChild(dl);
dl.style.marginLeft = '10px';
dl.style.color = 'red';
dl.style.fontWeight = 700;
})(document);
@eddievlagea
eddievlagea / no@replies
Created January 4, 2012 14:23
Hide @replies when viewing a Twitter profile
javascript:document.styleSheets[0].insertRule("[data-is-reply-to=true]{display:none}",0)
@eddievlagea
eddievlagea / .htaccess
Created October 1, 2011 10:36 — forked from nathansmith/.htaccess
Route extension-less files to HTML.
# Route extension-less URLs to the equivalent *.html file.
# For instance: example.com/about = example.com/about.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
</IfModule>
@eddievlagea
eddievlagea / LICENSE.txt
Created September 28, 2011 11:58 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE