ls -l /run/user/$(id -u)/gvfs/mtp*/
via: http://help.howproblemsolution.com/1143616/mtp-workarounds
ls -l /run/user/$(id -u)/gvfs/mtp*/
via: http://help.howproblemsolution.com/1143616/mtp-workarounds
^(0|86|17951)?1([3458][0-9]|7[0678])\d{8}$
(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.
#!/usr/bin/env python | |
""" | |
Upload image to http://drp.io in terminal. | |
""" | |
from __future__ import print_function | |
import sys |
#!/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' |
import os.path | |
import sys | |
import time | |
import torrent | |
def get_meta(path): | |
f = open(path, "r") | |
s = f.read() |
#! /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 json | |
from distutils.version import LooseVersion | |
import pip | |
try: | |
from urllib.request import urlopen | |
except ImportError: | |
from urllib2 import urlopen |