Skip to content

Instantly share code, notes, and snippets.

View punkrockpolly's full-sized avatar
🌍
Working from Barcelona

Polina Giralt (pgiralt) punkrockpolly

🌍
Working from Barcelona
View GitHub Profile
demo_buckets = {
'politics1': ['active_percent',
'somewhat_active_percent',
'inactive_percent'],
'politics2': ['independent_percent',
'democrat_percent',
'republican_percent'],
'gender': ['female_percent',
'male_percent'],
'kids': ['has_kids_percent',

Keybase proof

I hereby claim:

  • I am punkrockpolly on github.
  • I am polina (https://keybase.io/polina) on keybase.
  • I have a public key whose fingerprint is B4D7 0992 57B7 08E5 9F0B 002B EE0C E79A A4B6 E8F0

To claim this, I am signing this object:

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@punkrockpolly
punkrockpolly / ConnectFour.py
Last active December 19, 2015 17:58
Game of ConnectFour. 2 human players take turns. Objective is to make 4 in a row. Pieces drop to lowest available spot in column selected.
## Game of ConnectFour
## 2 human players take turns
## Objective is to make 4 in a row
## Pieces drop to lowest available spot in column selected
class Board(object):
def __init__(self):
self.num_row = 6
self.num_col = 7
@punkrockpolly
punkrockpolly / FizzBuzz
Last active December 19, 2015 14:09
FizzBuzz: Write a program that prints out the numbers 1 to 100 (inclusive). If the number is divisible by 3, print Fizz instead of the number. If it's divisible by 5, print Buzz. If it's divisible by both 3 and 5, print FizzBuzz.
for x in range (1, 101):
output = ""
if x%3 == 0:
output += "Fizz"
if x%5 == 0:
output += "Buzz"
if output == "":