Skip to content

Instantly share code, notes, and snippets.

View eddievlagea's full-sized avatar

Eddie Vlagea eddievlagea

View GitHub Profile
@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
@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 / 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 / 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);
{
"locale": {
"dashboard":{
"DASHBOARD_TITLE": "OTP Bank",
},
"global": {
"LABEL_CANCEL":"Cancel",
"LABEL_DONE":"Done",
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'
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]*'
@eddievlagea
eddievlagea / unblur_quora.user.js
Created August 7, 2012 19:56 — forked from swanson/unblur_quora.user.js
Chrome user script to unblur Quora answers without signing up
// ==UserScript==
// @match http://*.quora.com/*
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
{
"auto_indent": true,
"auto_match_enabled": true,
"caret_style": "smooth",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Tomorrow Night Aqua.tmTheme",
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_US.dic",
"draw_centered": false,
"draw_indent_guides": true,
@eddievlagea
eddievlagea / Preferences.sublime-settings
Created August 27, 2012 17:47
Sublime Text 2 settings
{
"auto_indent": true,
"auto_match_enabled": true,
"caret_style": "smooth",
"close_windows_when_empty": true,
"color_scheme": "Packages/Themes/prospettiva.tmTheme",
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_US.dic",
"draw_centered": false,
"draw_indent_guides": true,