Skip to content

Instantly share code, notes, and snippets.

View santagada's full-sized avatar

Leonardo Santagada santagada

  • Guerrilla Games
  • Amsterdam
View GitHub Profile
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
@santagada
santagada / gist:5151807
Last active December 14, 2015 21:29 — forked from MrcFoz/gist:5131756
# -*- coding: utf-8 -*-
def sorteio():
"""
Cria a lista com os resultados oficiais publicados pela Caixa.
"""
sorteados = []
while len(sorteados) < 6:
numero = int(input("Digite o número: "))
if numero > 0 and numero <= 60:
(function(){return 2*3;}).toString() === (function(){return 6;}).toString(); // true in FF & Opera, false in IE & WebKit, because Opera don't put the actual code of the function on the string and FF optimizes the source to be the same.