Skip to content

Instantly share code, notes, and snippets.

View rbrito's full-sized avatar
☹️
Having (YET another) kidney stone surgery in a few days...

Rogério Brito rbrito

☹️
Having (YET another) kidney stone surgery in a few days...
View GitHub Profile
--- a/example-clients/transport.c
+++ b/example-clients/transport.c
@@ -300,11 +300,11 @@
/* Isolate the command word. */
i = 0;
- while (line[i] && whitespace(line[i]))
+ while (line[i] && isspace(line[i]))
i++;
word = line + i;
@rbrito
rbrito / LICENSE.txt
Created February 20, 2012 01:31 — forked from aemkei/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@rbrito
rbrito / Javascript.js
Created February 16, 2012 10:55
Proposal of changes for Javascript.js
/*
* iTunes Javascript Class, added to the displayed pages.
* Catches iTunes-api calls from pages, such as
* http://r.mzstatic.com/htmlResources/6018/dt-storefront-base.jsz
*/
/*global window */
iTunes = { // All called from the page js:
getMachineID: function () {
@rbrito
rbrito / gist:1793354
Created February 10, 2012 22:03
Unittests before changes
# -*- coding: utf-8 -*-
import sys
import unittest
sys.path.append('src')
sys.path.append('../src')
from common import *
@rbrito
rbrito / bruno.py
Created November 1, 2011 17:32 — forked from kinow/Euler1.java
Project Euler 1
#!/usr/bin/env python
import sys
if sys.platform == "win32":
from time import clock as default_timer
else:
from time import time as default_timer
def bruno(n):
@rbrito
rbrito / dejavubb.sty
Created October 22, 2011 19:15
Generation of a TeX font with fontforge
%% Stolen from the bbold package.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dejavubb}[2011/10/08 dejavubb package]
\newcommand{\bbfamily}{\fontencoding{T1}\fontfamily{dejavubb}\selectfont}
\newcommand{\textbb}[1]{{\bbfamily#1}}
\DeclareMathAlphabet{\mathbb}{T1}{dejavubb}{m}{n}
\endinput
int mine(int n)
{
int i, sum = 0;
for (i = 1; i <= n; i++) {
sum += i^2/4;
}
return sum;
}
rbrito@chagas:/media/lutz/devel/xpdf-poppler$ git reflog show origin/debian
63d878b refs/remotes/origin/debian@{0}: update by push
ed1d718 refs/remotes/origin/debian@{1}: update by push
bf233f7 refs/remotes/origin/debian@{2}: update by push
de82975
rbrito@chagas:/media/lutz/devel/xpdf-poppler$