This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import feedparser | |
| f=open('blogroll.html','w') | |
| f.write("<html>\n<head>\n<title>Blogroll</title>\n</head>\n<body>"); | |
| blogs=["http://programminggenin.blogspot.com/feeds/posts/default","http://djangolearner.blogspot.com/feeds/posts/default"]; | |
| for blog in blogs : | |
| feed=feedparser.parse(blog) | |
| f.write('<a href="%s">%s</a>\n'% (feed.feed.link,feed.feed.title)); | |
| f.write('<ul>\n'); | |
| for e in feed.entries: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Corey Goldberg, 2013 | |
| # | |
| # Python 2.7 | |
| """validate and analyze dimensions of image files. Supports: PNG, JPG, GIF.""" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| #-*- coding=utf-8 -*- | |
| # © 2013 Mark Harviston, BSD License | |
| from __future__ import absolute_import, unicode_literals, print_function | |
| """ | |
| Qt data models that bind to SQLAlchemy queries | |
| """ | |
| from PyQt4 import QtGui | |
| from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt | |
| import logging # noqa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from StringIO import StringIO | |
| from PIL import ImageFileIO | |
| import matplotlib.pyplot as plt | |
| from reportlab.platypus import Image | |
| buf = StringIO() | |
| #plot your graphs | |
| plt.save_figure(buf, format="png") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy import Column, Integer, String | |
| from sqlalchemy.orm import sessionmaker | |
| engine = create_engine('sqlite:///:memory:', echo=True) | |
| Session = sessionmaker(bind=engine) | |
| Base = declarative_base() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oldsums=$(sed -n '/^.*sums=(.*/,/.*)/p' PKGBUILD); newsums=$(makepkg -g); sed -i "/^.*sums=(.*/,/.*)$/y/${oldsums/$'\n'/\\n}/${newsums/$'\n'/\\n}/" PKGBUILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Original maintainer Alex Talker < Alextalker at openmailbox dot com > | |
| # Support Maintainer Filip Brcic < brcha at gna dot org > | |
| # Contributor bitwave < aur [at] oomlu [d0t] de > | |
| # Alex say thanks to Filip about support this package while he was away from Arch. | |
| pkgname=multidoge | |
| pkgver=0.1.4 | |
| pkgrel=1 | |
| pkgdesc="Java-based DogeCoin client" | |
| arch=('i686' 'x86_64') | |
| url="http://${pkgname}.org" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ scoll.py +++ Script Collection for VapourSynth: ++++++++++++++++++++++++++++++++++++++++++++++ | |
| """ | |
| import vapoursynth as vs | |
| try: | |
| import havsfunc as haf | |
| except: | |
| HAS_HAF = False | |
| else: | |
| HAS_HAF = True | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import vapoursynth as vs | |
| def clamp(minimum, x, maximum): | |
| return int(max(minimum, min(round(x), maximum))) | |
| def m4(x, m=4.0): | |
| return 16 if x < 16 else int(round(x / m) * m) |