Skip to content

Instantly share code, notes, and snippets.

View thiagopnts's full-sized avatar
phew

Thiago Pontes thiagopnts

phew
View GitHub Profile
@mcpherrinm
mcpherrinm / hello.rs
Last active November 24, 2022 19:21
Hello World in Rust without the runtime (libcore and libc only)
#![no_std]
extern crate core;
use core::option::{None, Some};
use core::iter::Iterator;
use core::str::StrSlice;
#[lang="stack_exhausted"]
pub extern "C" fn rust_stack_exhausted() {
unsafe { core::intrinsics::abort() }
}
@hdubugras
hdubugras / gist:9985111
Last active August 29, 2015 13:58
VAGA DESENVOLVEDOR BACK-END Pagar.me

VAGA DESENVOLVEDOR BACK-END

O Pagar.me está crescendo e o nosso time também. Para isso, estamos contratando desenvolvedores para nos ajudar a resolver os grandes problemas do mercado de pagamentos brasileiro. Nossa aplicação é escrita principalmente em Javascript (Node.js e AngularJS) e somos fortemente adeptos a novas tecnologias. Adoramos usar as ferramentas certas para resolver nossos problemas e somos totalmente obcecados por testes e filosofia open-source.

Não procuramos pessoas apenas excepcionais em Javascript, Ruby ou outra linguagem, mas também em computação em si. Queremos gente apaixonada por UNIX, otimização (incluindo do seu editor de texto), testes, segurança e consistência. Amamos os que programam desde a adolescência ou infância e que não consigam dormir até resolver um problema.

Seguem algumas reportagens sobre o pagar.me e os fundadores:

from math import sqrt
from heapq import heappush, heappop, nsmallest
class Point:
def __init__(self, coord, data=None):
self.coord = coord
self.data = data
self.dest = None

Start up your technohipster instance

First create a security group called technohipster with the following ports open to the world:

TCP 22, 443, 8080
UDP 1194

Now launch your instance using a fresh 12.04 ubuntu image ec2-run-instances ami-b53012dc -k YOUR_KEYPAIR -g technohipster --instance-type t1.micro

@amatus
amatus / rust_for_rpi.md
Last active February 18, 2017 21:13 — forked from anonymous/gist:6664882
Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust
./configure --target-triples=arm-unknown-linux-gnueabihf

make

@fsouza
fsouza / str.go
Last active December 20, 2015 10:31
package str
func Reverse(input string) string {
return ""
}
@edinella
edinella / gist:5006629
Created February 21, 2013 17:44
Generate random 16 chars string
Math.random().toString(36).substr(2,16);
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@pedrocss
pedrocss / Foca no código
Created August 27, 2012 17:15 — forked from zenorocha/Foca no código
Foca no código
/* Véi, foca no código
.---.
/o o\
__(= " =)__
//\'-=-'/\\
) (_
/ `"=-._
/ \ ``"=.
@sent-hil
sent-hil / pictures.markdown
Created August 24, 2012 02:18
River (getriver.com): Keep a programming journal.

One of my favorite past times is to look at the notebooks of famous scientists. Da Vinci's notebook is well known, but there plenty others. Worshipping Da Vinci like no other, I bought a Think/Create/Record journal, used it mostly to keep jot down random thoughts and take notes. This was great in the beginning, but the conformity of lines drove me nuts. Only moleskines made blank notebooks, so I had to buy one.

At the same time I started a freelance project. The project itself is irrelevant, but suffice to say it was very complex and spanned several months. It seemed like a perfect opportunity to use the moleskine. Looking back, all my entries fell under few categories:

  • Todo
  • Question
  • Thought
  • Bug
  • Feature