This file contains 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
$ pipenv lock --verbose | |
Locking [dev-packages] dependencies... | |
Locking [packages] dependencies... | |
using sources: [{'url': 'https://pypi.org/simple', 'verify_ssl': True, 'name': 'pypi'}] | |
Using pip: -i https://pypi.org/simple | |
ROUND 1 | |
Current constraints: | |
ruamel.yaml==0.10.11 (from -r /var/folders/vm/nd6nhd948xj4ds001s76srj80000gn/T/pipenv-quepzcpu-requirements/pipenv-btnrwlic-constraints.txt (line 2)) |
This file contains 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
def main(): | |
fork_and_continue_in_child() | |
setup_reactor('AsyncioSelectorReactor') | |
run_server() | |
def setup_reactor(reactor_type): | |
if reactor_type == 'AsyncioSelectorReactor': | |
from twisted.internet import asyncioreactor | |
asyncioreactor.install() | |
elif reactor_type == 'SelectReactor': |
This file contains 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
$ python3 runtests.py mypy.test.testsemanal | |
PARALLEL 2 | |
SUMMARY 3 tasks selected | |
passed 2, failed 1, pending 0; running 0 | |
FAILURE #0 run unit-test mypy.test.testsemanal | |
Expected: | |
... | |
ImportFrom:1(mypy.typing, [TypedDict]) |
This file contains 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
python setup.py develop | |
/urllib3/venv/lib/python3.4/site-packages/setuptools/dist.py:294: UserWarning: The version specified ('dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. | |
"details." % self.metadata.version | |
running develop | |
running egg_info | |
creating urllib3.egg-info | |
writing requirements to urllib3.egg-info/requires.txt | |
writing top-level names to urllib3.egg-info/top_level.txt | |
writing dependency_links to urllib3.egg-info/dependency_links.txt | |
writing urllib3.egg-info/PKG-INFO |
This file contains 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 collections import OrderedDict | |
import urllib3 | |
http = urllib3.PoolManager() | |
response = http.request( | |
method='GET', | |
url='http://127.0.0.1:8765/', | |
headers=OrderedDict([ | |
('X-Header-1', 'ignoreme'), |
This file contains 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 collections import OrderedDict | |
import requests | |
try: | |
requests.get( | |
'http://127.0.0.1:8765/', | |
headers=OrderedDict([ | |
('X-Header-1', 'ignoreme'), | |
('X-Header-2', 'ignoreme'), | |
('X-Header-3', 'ignoreme'), |
This file contains 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/ruby | |
# -*- coding: utf-8 -*- | |
require 'rdiscount' | |
rd = RDiscount.new("# 中\n\n## 学\n\n####私", :generate_toc) | |
print rd.to_html |
This file contains 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
/* | |
* MediaQueue | |
* | |
* A system for quickly searching for media items (movies, TV series, anime, books) | |
* in various different media sources. | |
* | |
* If you're reading this file then you might be interesting in either understanding | |
* how it works or extending it (especially to add new kinds of media sources). | |
* Useful starting points: | |
* |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | |
<style> | |
h1, | |
h2, | |
h3, | |
h4, |
This file contains 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
//package vlcj.tutorial2; | |
import javax.swing.JFrame; | |
import javax.swing.SwingUtilities; | |
import uk.co.caprica.vlcj.binding.LibVlc; | |
import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent; | |
import uk.co.caprica.vlcj.runtime.RuntimeUtil; | |
import com.sun.jna.Native; |
NewerOlder