Differences between distribute, distutils, setuptools and distutils2?
Why does setup.py develop
not work?
Removing python module installed in develop mode
$ pip install virtualenv
from BeautifulSoup import BeautifulSoup | |
f = open("chrome-fav.html","r") | |
html = f.read() | |
f.close() | |
soup = BeautifulSoup(html) | |
bookmarks = soup.findAll('a') | |
# attributes: href, add_date, icon etc. |
import os | |
import subprocess | |
import sys | |
path = sys.argv[1] | |
for fname in os.listdir(path): | |
(name, ext) = os.path.splitext(fname) | |
if ext == '.zip': | |
ret = subprocess.call("mkdir" + " {0}".format(name), shell=True) |
# /etc/i3status.conf | |
# i3status configuration file. | |
# see "man i3status" for documentation. | |
# It is important that this file is edited as UTF-8. | |
# The following line should contain a sharp s: | |
# ß | |
# If the above line is not correctly displayed, fix your editor first! | |
general { |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
# | |
# This config file uses keycodes (bindsym) and was written for the QWERTY | |
# layout. | |
# | |
# To get a config file with the same key positions, but for your current | |
# layout, use the i3-config-wizard | |
# |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import npyscreen | |
import qbtce | |
import datetime | |
api = qbtce.API() | |
def parse_depth(): |
{ | |
"pools" : [ | |
{ | |
"url" : "POOL_URL", | |
"user" : "USER", | |
"pass" : "PASS" | |
} | |
] | |
, | |
"intensity" : "18,17,17", |
# -*- coding: utf-8 -*- | |
import lxml.html | |
import math | |
from datetime import datetime | |
radiot_nick = 'jc-radio-t' | |
podcast = 'http://chat.radio-t.com/logs/radio-t-{number}.html'.format(number=422) | |
# parsing |
import tornado.websocket | |
import json | |
class WebSocketHandler(tornado.websocket.WebSocketHandler): | |
clients = [] | |
def open(self): | |
WebSocketHandler.clients.append(self) | |
print "WebSocket opened" | |
def on_message(self, message): |
################################################################# | |
############################## DRAFT ############################ | |
################################################################# | |
# arch linux - stage_install | |
# update system clock | |
$ timedatectl set-ntp true | |
# PARTITIONING (EFI) | |
-s -- never prompt the user |