I hereby claim:
- I am smajda on github.
- I am smajda (https://keybase.io/smajda) on keybase.
- I have a public key ASA5k5YuTGsuCw51oeiZM8KHxrlHIxr7dKSpT40SO_QYRwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Like the technical community as a whole, the PythonKC community is made up of a mixture of professionals and volunteers from all over the world, working on every aspect of the mission - including mentorship, teaching, and connecting people.
Diversity is one of our huge strengths, but it can also lead to communication issues and unhappiness. To that end, we have a few ground rules that we ask people to adhere to. This code applies equally to founders, mentors and those seeking help and guidance.
This isn’t an exhaustive list of things that you can’t do. Rather, take it in the spirit in which it’s intended - a guide to make it easier to enrich all of us and the technical communities in which we participate.
This code of conduct applies to all spaces managed by the PythonKC. This includes PythonKC meetups and events, IRC, Slack, Github, the mailing list, and any other forums created by the PythonKC organizers which the community uses for communication. In addition, violations of th
# pip install pytest requests | |
# py.test | |
import requests | |
def test_home(): | |
"GET request to url returns a 200" | |
url = 'https://monitorial.com/' | |
resp = requests.get(url) | |
assert resp.status_code == 200 |
set bind-tty-special-chars off | |
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line | |
"\e[5~": beginning-of-history | |
"\e[6~": end-of-history | |
"\e[3~": delete-char | |
"\e[2~": quoted-insert | |
"\e[5C": forward-word | |
"\e[5D": backward-word | |
"\e\e[C": forward-word |
/* | |
* Directory structure: | |
* | |
* project/ | |
* package.json | |
* gulpfile.js | |
* node_modules/ | |
* src/ | |
* dist/ | |
* |
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
import re | |
import subprocess | |
import sys | |
from collections import namedtuple | |
def first_to_last(items): | |
"Return a new list where last item in items is moved to the front" | |
return items[-1:] + items[:-1] |
from textwrap import dedent | |
def beer_song(): | |
def describe(quantity): | |
if quantity > 1: | |
return '{} bottles'.format(quantity) | |
elif quantity == 1: | |
return '1 bottle' | |
else: | |
return 'No more bottles' |
#!/bin/sh | |
url='http://someurl.com/' | |
wait=2 # wait between each request | |
cutdirs=2 # i.e. if '/foo/bar/data' -> start at 'data' | |
wget \ | |
--execute="robots=off" \ | |
--mirror \ | |
--convert-links \ |
""" | |
Converts source video files in `sources` to mp4, ogv, and webm 640x360. | |
Edit `sources` (list of filenames) and adjust `source_dir`, `output_dir`, | |
and `new_path` as needed. | |
Reference: http://paulrouget.com/e/converttohtml5video/ | |
""" | |
import os | |
import subprocess |