Saves an image from clipboard to a file.
- python2
- PyGTK
import os.path | |
import sys | |
import time | |
import torrent | |
def get_meta(path): | |
f = open(path, "r") | |
s = f.read() |
#!/usr/bin/env python3 | |
import os | |
import re | |
import sys | |
import mechanicalsoup | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36' |
#!/usr/bin/env python | |
""" | |
Upload image to http://drp.io in terminal. | |
""" | |
from __future__ import print_function | |
import sys |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
^(0|86|17951)?1([3458][0-9]|7[0678])\d{8}$
ls -l /run/user/$(id -u)/gvfs/mtp*/
via: http://help.howproblemsolution.com/1143616/mtp-workarounds
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |
import requests | |
from db import db | |
""" | |
The Douban Group API which not display on http://developers.douban.com/wiki/?title=api_v2 | |
Base url: https://api.douban.com/v2 | |
Group info: /group/:id |