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:
<?php | |
/* Merge multiple RSS feeds with SimplePie | |
* | |
* Just modify the path to SimplePie and | |
* modify the $feeds array with the feeds you want | |
* | |
* You should probably also change the channel title, link and description, | |
* plus I added a CC license you may not want | |
* | |
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/ |
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] |
# 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 |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# backs up wordpress database and files | |
set -e | |
###### set your variables | |
BLOGDIR="/home/username/public_html/blog" ## location of blog on server | |
BUDIR="/home/username/blogbu" ## location of backups on server | |
DBNAME='dbname' ## name of your blog's database | |
DBUSER='dbuser' ## database username |
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |
/* | |
* Directory structure: | |
* | |
* project/ | |
* package.json | |
* gulpfile.js | |
* node_modules/ | |
* src/ | |
* dist/ | |
* |
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
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 \ |