Public Gists by bastos

Gravatar
Tue Nov 11 09:21:30 -0800 2008
1
2
3
! Global
Xft.antialias: true
Xft.rgba : rgb
Gravatar
Fri Oct 31 10:55:49 -0700 2008
1
2
3
;; From http://alohakun.blog7.fc2.com/blog-entry-929.html with small changes...
(require-extension xlib)
 
gist: 20804 Emacs lisp function to quic...
Gravatar
Wed Oct 29 12:55:56 -0700 2008
1
2
3
;; from http://dotfiles.org/~lwu/.emacs
; code copied from XEmacs's Options\Edit Init File menu code
(defun edit-dot-emacs ()
gist: 18925 Ubiquity moourl.com Command
Gravatar
Wed Oct 22 22:07:06 -0700 2008
1
2
3
CmdUtils.CreateCommand(
{
    name: "moo",
gist: 18919 LinkedList
Gravatar
Wed Oct 22 21:34:02 -0700 2008
1
2
3
#include<stdlib.h>
#include<stdio.h>
 
gist: 18032 Binary tree example!
Gravatar
Mon Oct 20 00:08:56 -0700 2008
1
2
3
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
gist: 17403 Busca de anúncios no diário...
Gravatar
Fri Oct 17 05:37:34 -0700 2008
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'hpricot'
gist: 17138 line 16 just for debbug, re...
Gravatar
Thu Oct 16 06:55:44 -0700 2008
1
2
3
# Cache XML RPC calls
#
# Author:: Tiago Bastos (mailto:bastos_tiago@atlantico.com.br).
gist: 16708 Some scripts to get memcach...
Gravatar
Tue Oct 14 05:51:27 -0700 2008
1
2
3
#!/usr/bin/perl
# Thanks to http://lists.danga.com/pipermail/memcached/2003-October/000354.html
use IO::Socket;
gist: 16666 .emacs
Gravatar
Mon Oct 13 21:11:54 -0700 2008
1
2
3
(custom-set-variables
 '(column-number-mode t)
 '(ecb-options-version "2.32")
Gravatar
Mon Oct 13 11:11:19 -0700 2008
1
2
3
Rapidamente:
 
Greenthreds usam sempre o mesmo core e devido a IO etc eles podem ficar bloqueados por muito tempo, os SPARC T2000 etc tem ótimos processadores para coisas como Java que usam threads nativas e por isso usam muito bem os cores (e tb a tecnologia de hyperthreding). Para usar mongrels, com testes que fizemos aqui, mesmo com alguns mongrels por core a resposta ainda fica bem mais lenta do que se compararmos com as respostas de uma arquitetura x86. O processador da SUN é otimizado para múltiplas threads e não para processos singlethread como o mongrel.
gist: 14566 Ubiquity Jira Search, Fork,...
Gravatar
Fri Oct 03 07:37:21 -0700 2008
1
2
3
// Customize your jira address
// Based on apidock.org Ubiquity Search: http://gist.github.com/8132
CmdUtils.CreateCommand(
Gravatar
Fri Oct 03 06:51:34 -0700 2008
1
2
3
#!/usr/bin/env ruby
# See: http://jira4r.rubyhaus.org/
require 'rubygems'
Gravatar
Thu Sep 18 07:36:23 -0700 2008
1
2
3
#!/usr/local/bin/ruby
#Just a joke!
 
gist: 11380 Pattern Matching For Ruby M...
Gravatar
Wed Sep 17 22:28:11 -0700 2008
1
2
3
# A not Nil or Unbound thing representation
class Unbound; end
 
Gravatar
Tue Sep 09 12:37:54 -0700 2008
1
2
3
/* See LICENSE file for copyright and license details. */
 
/* appearance */
Gravatar
Sat Sep 06 15:51:26 -0700 2008
1
git archive --format=tar --prefix=prices/ HEAD | (cd /home/django/apps/ && tar xf -)
Gravatar
Fri Aug 29 11:07:57 -0700 2008
1
2
3
require 'camping'
 
Camping.goes :E