Skip to content

Instantly share code, notes, and snippets.

View pwcahyo's full-sized avatar
:octocat:
Pro

pwcahyo

:octocat:
Pro
View GitHub Profile

Membuat direktori lebih dari satu (sub direktori)

$ pwd
$ mkdir A A/B A/C A/D
@pwcahyo
pwcahyo / beautiful_idiomatic_python.md
Created September 15, 2017 07:21 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@pwcahyo
pwcahyo / item.py
Created January 31, 2016 13:47
tweet
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TwitterscrapingItem(scrapy.Item):