Skip to content

Instantly share code, notes, and snippets.

View gesteves's full-sized avatar

Guillermo Esteves gesteves

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title></title>
<style type="text/css">
li {
list-style-type:none;
position:relative;
javascript:if((location.href.search(/twitter.com/)!=-1)&&(location.href.search(/status/)!=-1)){
u=location.href.split('/');location.href='http://favstar.fm/users/'+u[3]+'/status/'+u[5];}else{alert(%22This%20isn't%20a%20tweet!%22);}
javascript:if((location.href.search(/twitter.com/)!=-1)&&(location.href.search(/status/)!=-1)){
u=location.href.split('/');location.href='http://favrd.textism.com/tweet/'+u[5];}else{alert(%22This%20isn't%20a%20tweet!%22);}
{block:Text}
<div class="regular">
{block:Title}<h2><a href="{Permalink}" class="entry-title" rel="bookmark">{Title}</a></h2>{/block:Title}
<script type="text/javascript">
var tweet_text = {JSPlaintextBody};
{block:Title}
var tweet_text = {JSPlaintextTitle};
{/block:Title}
</script>
<div class="content">
@gesteves
gesteves / Tweleccion views.py
Created October 17, 2010 23:43
View code for tweleccion.com
from django.shortcuts import render_to_response
from django import http
from django.http import HttpResponse
from django.template.loader import get_template
from django.template import Context
from django.template import Template
from google.appengine.api import memcache
from google.appengine.api import urlfetch
from xml.dom import minidom
from models import *
@gesteves
gesteves / gist:1051628
Created June 28, 2011 17:13
Google Apps script to export Google Talk chat logs to a Google Docs spreadsheet
/*
Quick instructions:
1. Go to Google Docs and open a new spreadsheet.
2. Go to Tools > Script editor...
3. Delete everything, paste this code in the script editor, and save it.
4. Go back to the spreadsheet, Tools > Script manager...
5. Select getChats, and press the "run" button.
6. It'll ask for a bunch of authorizations. Grant them.
7. When it says "now you can run the script", repeat step 5.
.mobile-layout .mann {
margin-bottom:20px;
-webkit-box-shadow:none;
-moz-box-shadow:none;
box-shadow:none;
}
.mobile-layout .mann h2 {
background:none;
padding:20px;
}
$('p').each(function () {
var _this = $(this);
if (_this.css('font-family') == "Comic Sans") {
_this.css('font-family', 'Helvetica');
}
});
[2013-01-17 16:27:11] ./installer -a /Users/gesteves/.rvm/rubies/ree-1.8.7-2012.02 --no-tcmalloc --dont-install-useful-gems --no-dev-docs
current path: /Users/gesteves/.rvm/src/ree-1.8.7-2012.02
command(6): ./installer -a /Users/gesteves/.rvm/rubies/ree-1.8.7-2012.02 --no-tcmalloc --dont-install-useful-gems --no-dev-docs
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2012.02.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.
You can expect this from the installation process:
@gesteves
gesteves / SassMeister-input.scss
Created October 31, 2013 21:55
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$color: blue;
body {
color: lighten($color, 20%);
}