Skip to content

Instantly share code, notes, and snippets.

PyBites pybites

Block or report user

Report or block pybites

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pybites
pybites / slack-community.py
Created Apr 22, 2018
script to get timezone distribution of our slack community
View slack-community.py
from collections import Counter
import os
import sys
from slackclient import SlackClient
token = os.environ.get('SLACK_TOKEN') or sys.exit('need slack api token')
client = SlackClient(token)
users = client.api_call("users.list")
timezones = Counter()
View ciudades.py
#!python3
# my first VBA macro redone in Python
# related article: How I got fired up about programming
# https://bobbelderbos.com/2016/02/fired-up-about-programming/
# 1. download game here: http://juegosexcel.com/foro/viewtopic.php?t=6396
# 2. (to avoid loosing a lot of time using older excel libs) save file to xlsx
#
from collections import namedtuple
import re
@pybites
pybites / followers_wc.ipynb
Created Aug 20, 2017 — forked from simecek/followers_wc.ipynb
Generate wordcloud of followers' descriptions
View followers_wc.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pybites
pybites / PyBites.py
Last active Jun 4, 2017 — forked from clamytoe/PyBites.py
PyBites.py
View PyBites.py
"""Written on iPhone with the Pythonista 3 app
As a joke for the PyBites guys, I don't see why it wouldn't work anywhere else though. They always
start off their newsletter annoucements with:
from @PyBites import newsletter
So I turned it into actual code that pulls their feed and opens their latest newsletter in a browser :)
"""
import webbrowser
@pybites
pybites / tictactoe.py
Last active Mar 26, 2017
A simple tictactoe game including AI
View tictactoe.py
'''Simple tictactoe game, board positions are like keyboard
7 8 9
4 5 6
1 2 3
'''
from builtins import input
from collections import Counter
from functools import wraps
import itertools
@pybites
pybites / emailer.py
Created Mar 23, 2017 — forked from sarahholderness/emailer.py
Python scripts to read a list of customer emails and send an email with the daily weather forecast
View emailer.py
import weather
import smtp
'''
Send a greeting email to our customer email list
with the daily weather forecast and schedule
'''
def get_emails():
# Reading emails from a file
You can’t perform that action at this time.