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
View mount-data.txt
{"achievementPoints": 14565,
"battlegroup": "Cyclone",
"calcClass": "V",
"class": 9,
"faction": 0,
"gender": 0,
"lastModified": 1519011260000,
"level": 110,
"mounts": {"collected": [{"creatureId": 32158,
"icon": "ability_mount_drake_blue",
pybites /
Created Apr 22, 2018
script to get timezone distribution of our slack community
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()
# my first VBA macro redone in Python
# related article: How I got fired up about programming
# 1. download game here:
# 2. (to avoid loosing a lot of time using older excel libs) save file to xlsx
from collections import namedtuple
import re
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 /
Last active Jun 4, 2017 — forked from clamytoe/
"""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 /
Last active Mar 26, 2017
A simple tictactoe game including AI
'''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 /
Created Mar 23, 2017 — forked from sarahholderness/
Python scripts to read a list of customer emails and send an email with the daily weather forecast
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.