Skip to content

Instantly share code, notes, and snippets.

View cezarsa's full-sized avatar

Cezar Sá Espinola cezarsa

  • Brasília - DF / Brazil
  • 18:11 (UTC -03:00)
View GitHub Profile
cezar@cezar-ubuntu:~/dev/rubinius$ bin/rbx -e "100000000.times { 1 + 1 }"
Stack dump:
0. Running pass 'Unnamed pass: implement Pass::getPassName()' on function '@0'
Error: signal SIGSEGV
bin/rbx[0x81c0db2]
[0x3e1400]
bin/rbx(_ZNK4llvm3Use14getImpliedUserEv+0x7)[0x8925137]
[0x8]
From 1bc981530051ac8c586828f818e3bf8bffeb0252 Mon Sep 17 00:00:00 2001
From: Cezar Sa Espinola <cezarsa@gmail.com>
Date: Sun, 16 May 2010 19:10:59 -0300
Subject: [PATCH] Exposing connection headers in the connect event.
---
ws.js | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ws.js b/ws.js
# After calling client.end();
MB:node.ws.js cezarsa$ sudo lsof -i -P | grep node
node 3755 cezarsa 5u IPv4 0x078f56e0 0t0 TCP *:8080 (LISTEN)
node 3755 cezarsa 8u IPv4 0x05803334 0t0 TCP 192.168.0.5:59066->168.143.162.103:80 (FIN_WAIT_2)
# After calling client.destroy();
MB:node.ws.js cezarsa$ sudo lsof -i -P | grep node
node 3814 cezarsa 5u IPv4 0x078f56e0 0t0 TCP *:8080 (LISTEN)
@cezarsa
cezarsa / locales.html
Created October 17, 2010 19:29
Report of existing locales and missing translations
<!DOCTYPE html>
<!--
Just drop this file into your extension directory.
-->
<html>
<head>
<title>Locales Data</title>
<script>
var LocaleTable = function() {
@cezarsa
cezarsa / VagrantFile
Created July 3, 2011 21:58 — forked from heynemann/VagrantFile
provy sample code
Vagrant::Config.run do |config|
config.vm.define :frontend do |inner_config|
inner_config.vm.box = "base"
inner_config.vm.forward_port("http", 80, 8080)
inner_config.vm.network("33.33.33.33")
end
config.vm.define :backend do |inner_config|
inner_config.vm.box = "base"
@cezarsa
cezarsa / dabblet.css
Created January 29, 2012 02:15
Fancy arrow
/**
* Fancy arrow
*/
body {
background-color: #ebeced;
}
.arrow {
border: 96px solid transparent;
border-bottom: 0;
border-top: 37px solid #d7d7d8;
diff --git a/vows/filters_vows.py b/vows/filters_vows.py
index 6269b27..96c45b5 100644
--- a/vows/filters_vows.py
+++ b/vows/filters_vows.py
@@ -46,7 +46,7 @@ FILTER_PARAMS_DATA = [
{
'type': BaseFilter.String,
'values': [
- ('a', 'a'), ('bbbb', 'bbbb'), (' cccc ', 'cccc'), (' cc:cc ', 'cc:cc')
+ ('a', 'a'), ('bbbb', 'bbbb'), (' cccc ', 'cccc'), (' cc:cc ', 'cc:cc'), ('"a,b"', 'a,b')
SELECT uid, first_name, last_name, username, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1 ORDER BY mutual_friend_count DESC LIMIT 10
<canvas width="800" height="600"></canvas>
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 16:57
Untitled
div {
width: 100px;
height: 40px;
background: crimson;
margin: 100px;
/*border: 10px solid navy;*/
border-width: 10px;
border-style: solid;
-webkit-border-image: -webkit-linear-gradient(top, #dcdcdc 0%,#dadada 16%,#c9c9c9 76%,#b6b6b6 100%);