Skip to content

Instantly share code, notes, and snippets.

View paoloo's full-sized avatar

Paolo Oliveira paoloo

View GitHub Profile
@paoloo
paoloo / ex1.py
Created June 14, 2016 03:43
PO-ifce-20161
import itertools, math
# gerar serie 1,2,4,7,11,…N
def seriea(N):
serie=[]
ac=1
for i in range(N):
ac+=i
serie.append(ac)
return(serie)
@paoloo
paoloo / mingwinstall.sh
Created May 24, 2016 03:33
win x86_64 c cross compiler(mingw)
#!/bin/bash
## windows x86_64 mingw cross-compilation on linux
## ============= INSTALATION SCRIPT =============
## ========== paolo oliveira <paolo@fisica.ufc.br>
if [ "$(id -u)" != "0" ]; then
echo "This instalation script requires root" 1>&2
exit 1
fi
# ==========[ download ]===========================================================================