Skip to content

Instantly share code, notes, and snippets.

View electricg's full-sized avatar

Giulia Alfonsi electricg

View GitHub Profile
@electricg
electricg / win.md
Last active October 7, 2015 04:18
Windows software list for work
@electricg
electricg / fiddle.html
Created April 11, 2012 13:53
Geolocation and Flickr photos taken nearby - jQuery plugin
<figure class="flickr">
<figcaption></figcaption>
</figure>
@electricg
electricg / fiddle.css
Created April 11, 2012 10:01
Remove selected option with jQuery
/* code not necessary for the effect, just to make it pretty */
html {
background-color: #EEE;
overflow-y: scroll;
}
body {
color: #333;
font-family: Verdana;
font-size: 14px;
margin: 0 auto;
@electricg
electricg / fiddle.css
Created April 11, 2012 09:17
Change color to select box with jQuery
/* code not necessary for the effect, just to make it pretty */
html {
background-color: #EEE;
overflow-y: scroll;
}
body {
color: #333;
font-family: Verdana;
font-size: 14px;
margin: 0 auto;
@electricg
electricg / fiddle.css
Created April 8, 2012 14:32
Show more/less in pure CSS3
/* code not necessary for the effect, just to make it pretty */
html {
background-color: #EEE;
overflow-y: scroll;
}
body {
color: #333;
font-family: Verdana;
font-size: 14px;
margin: 0 auto;
@electricg
electricg / fiddle.js
Created February 9, 2012 10:04
jQuery plugins for different <select> functionalities
(function($) {
// Autocomplete from the select
$.fn.autoSelect = function(options) {// plugin definition
var defaults = {
prex : 'listBean_field',
subx : 'Col',
prexTo : 'listBean_field',
subxTo : 'Name',
resetVal : -1
};