Skip to content

Instantly share code, notes, and snippets.

View bomberstudios's full-sized avatar
🍊
Thinking

Ale Muñoz bomberstudios

🍊
Thinking
View GitHub Profile
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>ul.buttongroup</title>
<style>
ul.buttongroup {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: inline-block;
.gradient (@from: #eee, @to: #ccc) {
background-color: @from;
background-image: -webkit-gradient(linear, left top, left bottom, from(@from), to(@to));
background-image: -moz-linear-gradient(center top, @from, @to);
}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Nice Buttons</title>
<style>
* { margin: 0; padding: 0; }
ul {
padding: 20px;
width: 80px;
float: left;
@bomberstudios
bomberstudios / optimize-legibility.html
Created June 29, 2010 09:08 — forked from kolber/optimize-legibility.html
Improved handling of kerning pairs and ligatures in modern browsers using the text-rendering: optimizeLegibility; declaration.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cross-browser kerning-pairs & ligatures</title>
<style>
body { font-family: sans-serif; background: rgba(30, 10, 0, 0.05); color: rgba(40, 30, 0, 1); width: 500px; margin: 80px auto; padding: 0px; }
a { color: rgba(15, 10, 0, 0.8); text-decoration: none; border-bottom: 1px solid; padding: 1px; -webkit-transition: background 1s ease; }
a:hover { background: rgba(0, 220, 220, 0.2); }
p { line-height: 1.5; padding: 0px 1em 0em 0em; }
@bomberstudios
bomberstudios / Ale.tmTheme
Created July 21, 2009 15:09
A TextMate theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>Created by Jacob Rus. Modified by Ale Muñoz</string>
<key>name</key>
<string>Ale</string>
<key>settings</key>
<array>
#!/usr/bin/env bash
# A script to create a new remote git repo in git
#
# 1. Make sure to setup ssh keys for passwordless logins
#
# 2. Add this to $HOME/.ssh/config:
# Host git
# HostName your.domain.com
# User username
@bomberstudios
bomberstudios / in-file_templates.rb
Created March 5, 2009 07:44
a small sample of how to use ERB templates in your file without making your code fugly
require 'erb'
files = Dir.glob("*")
templates = DATA.read.split("---")
templates.each do |template|
ERB.new(template, nil, '%-').run
end
__END__
package {
# A Python plugin for VoodooPad.
# It searches for tag_name appearances in your document and adds the text after it to
# a new list_page page.
VPScriptSuperMenuTitle = "GTD"
VPScriptMenuTitle = "Update @todo list"
VPShortcutKey = "T"
VPShortcutMask = "control"
import time
@bomberstudios
bomberstudios / test_unit_hacks.rb
Created December 6, 2008 16:22
a small hack to create tests by using test "Description of the test" do <your code here> end
class Test::Unit::TestCase
def self.test(name, &block)
test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym
defined = instance_method(test_name) rescue false
raise "#{test_name} is already defined in #{self}" if defined
if block_given?
define_method(test_name, &block)
else
define_method(test_name) do
flunk "No implementation provided for #{name}"
# RAE
require "rubygems"
require "curb"
require "hpricot"
def url_for word
"http://buscon.rae.es/draeI/SrvltGUIBusUsual?LEMA=#{word}&origen=RAE&TIPO_BUS=3"
end
def get_definition_for(word)