Skip to content

Instantly share code, notes, and snippets.

View fedemp's full-sized avatar
💭
That aloof guy

Federico Panico fedemp

💭
That aloof guy
  • Argentina
  • 23:05 (UTC -03:00)
View GitHub Profile
@fedemp
fedemp / fiddle.html
Created August 18, 2011 20:54
@Placeholder text should not be spell checked.
<!doctype html>
<title>@placeholder text should not be spell checked</title>
<textarea placeholder="foofoo"></textarea>
<p>Above textarea shows a red dotted bottom border in those browsers that try to check spelling on the placeholder.
<p>Even if the placeholder text was incorrect, to mark it as an error may cause frustation to the user since he cannot correct it.
<p>In Opera 11.50 the red border will appear after the textarea gains and loses focus for the first time.
@fedemp
fedemp / fiddle.css
Created September 19, 2011 20:11
Y.one, Y.all and $() return values
h1 {font: bold 1.25em sans-serif; margin: 0.75em 0}
ul {list-style-type: disc; padding: 0 0 0 5%}
body {line-height: 1.5}
b {font-family: monospace; background: yellow}
@fedemp
fedemp / 1.js
Created September 30, 2011 23:33
Some questions on Javascript
var b = undefined = 5;
var a;
if (b) a = 10;
console.log(a);
@fedemp
fedemp / fiddle.css
Created January 6, 2012 19:33
Nice buttons for Therma
input {
font-size: 12px;
border: 0;
cursor: pointer;
border-radius: 3px;
padding: 0 5px;
color: #fff;
font-weight: bold;
background: #ffa20d;
background: -moz-linear-gradient(top, #ffa20d 0%, #f98600 100%);
@fedemp
fedemp / index.markdown
Created March 28, 2012 19:28
Quick and dirty introduction to LESS

Quick and dirty introduction to LESS

Preproccesors and LESS

There are many CSS preproccesors currently in the wild. They work creating a new language sweeted with syntactic sugar that either redefines CSS syntax or simply reuses it with some special meanings added. The document created is finally compiled so it can actually work on any browser.

LESS, as one of this preproccesors, uses the same syntax of CSS so the preprocessor can understand already existing CSS code; this existing code can actually work as a base for a new project. Even though the similar syntax, the preprocessor expects files with the extension .less to make its work.

Having said this, it should be noted that this is actually valid LESS code:

@fedemp
fedemp / sms.css
Created March 29, 2012 19:57
css1k submission
html {
background: #333;
}
nav,
body {
width: 320px;
}
h1,
@fedemp
fedemp / featured-page-widget.php
Created April 3, 2012 01:08
featured-page-widget edited cause it breaks on one of my projects
@fedemp
fedemp / index.markdown
Created April 12, 2012 18:15
Running Windows under Ubuntu to test in Internet Explorer

How to test Internet Explorer 6 to 9 in Ubuntu

The final purpose of this tutorial is to have a Windows (XP, Vista, 7) running a native installation of Internet Explorer (6, 7, 8, 9). Windows will work as a guest in on Virtualbox running on Ubuntu. We will also make sure to have access to virtual hosts configured in the host OS.

Following steps have to be run on Ubuntu (or whatever flavor of Linux you have)

Download disk images of Windows

First step is to download Windows Virtual PC VHDs for testing websites with different Internet Explorer versions . These disk images are installations of different Windows versions with Internet Explorer installed. It's perfectly legal to use to any of these images; free as in beer.

Once you have download them, you will find that they are RAR files and one of them is an .exe file. Just rename the .exe file to .rar and we can continue.

@fedemp
fedemp / gist:3861704
Created October 9, 2012 21:58
Eclipse sources
http://download.aptana.com/tools/studio/plugin/install/studio
http://download.aptana.org/tools/studio/plugin/install/frameworks/
http://download.aptana.org/tools/studio/plugin/install/xul
http://update.eclemma.org/
http://download.eclipse.org/technology/epp/packages/galileo
http://findbugs.cs.umd.edu/eclipse/
http://download.eclipse.org/releases/galileo
http://alexwinston.github.com/RunJettyRun/site/update
http://m2eclipse.sonatype.org/update/
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
gtk-theme-name="Mint-Z"
gtk-icon-theme-name="Mint-X-Dark"
gtk-font-name="Segoe 10"
gtk-cursor-theme-name="DMZ-Black"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR