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
  • 07:18 (UTC -03:00)
View GitHub Profile
@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:7775677
Created December 3, 2013 19:12
vim-noctu
https://github.com/noahfrederick/vim-noctu
@fedemp
fedemp / rxvt-unicode-spacing.patch
Created September 2, 2013 00:01
Fix urxvt letter spacing
--- src/rxvtfont.C.bukind 2007-11-30 14:36:33.000000000 +0600
+++ src/rxvtfont.C 2007-11-30 14:39:29.000000000 +0600
@@ -1171,12 +1171,21 @@
XGlyphInfo g;
XftTextExtents16 (disp, f, &ch, 1, &g);
+/*
+ * bukind: don't use g.width as a width of a character!
+ * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial
+
# 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
@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/
@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 / sms.css
Created March 29, 2012 19:57
css1k submission
html {
background: #333;
}
nav,
body {
width: 320px;
}
h1,
@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 / 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 / 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);