Saves an image from clipboard to a file.
- python2
- PyGTK
#! /usr/bin/env python | |
#coding=utf-8 | |
import gevent | |
from gevent.subprocess import Popen, PIPE | |
import sys | |
def run(cmd,name="",index=1,color=True): | |
fc = 32 + index%5 | |
if name: |
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
@echo off | |
@rem ================== | |
@rem Source: | |
@rem https://gist.github.com/jcppkkk/8330314 | |
@rem Description: | |
@rem Install context menu to allow user opens file with Sublime Text as User or Admin, or Open Folder with Sublime Text. | |
@rem Usage: | |
@rem Download this .bat file to in Sublime Text's installation folder. | |
@rem Execute this batch file. It will download elevate codes and setup context menu. | |
@rem ================== |