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
require "html" | |
require "uri" | |
require "xml" | |
class HeadingLinker | |
HTML_PARSER_OPTIONS = XML::HTMLParserOptions.default | XML::HTMLParserOptions::NODEFDTD | |
XML_SAVE_OPTIONS = XML::SaveOptions::FORMAT | XML::SaveOptions::AS_HTML | |
getter doc |
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
# Maintainer: Daniel M. Capella <polycitizen@gmail.com> | |
# Maintainer: James Zhu <jameszhu@berkeley.edu> | |
pkgname=python-black | |
pkgver=18.9b0 | |
pkgrel=1 | |
pkgdesc='Uncompromising Python code formatter' | |
arch=('any') | |
url=https://github.com/ambv/black | |
license=('MIT') |
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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
tornado = "==5.1" | |
asyncio-redis = "==0.15.1" | |
[dev-packages] |
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
import random | |
import threading | |
import time | |
import tornado.gen | |
import tornado.ioloop | |
@tornado.gen.coroutine | |
def _work(i): |
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
// via Telegram Desktop CPyUG group fy | |
// https://stackoverflow.com/a/48298565/2837824 | |
const a = { | |
i: 1, | |
toString: function() { | |
return a.i++; | |
} | |
} | |
if (a == 1 && a == 2 && a == 3) { | |
console.log("Hello World!"); |
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
# Maintainer: Miguel Peláez <kernelfreeze@outlook.com> | |
# Contributor: WFCody | |
pkgname=jdk8-openj9-bin | |
_pkgver_minor="162" | |
_pkgver_build="12" | |
_pkgver_openj9="0.8.0" | |
pkgver=8.${_pkgver_minor} | |
pkgrel=1 |
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
import pickle | |
FILENAME = 'dumped.pickle' | |
def dump(obj, mode='wb'): | |
with open(FILENAME, mode) as fp: | |
pickle.dump(obj, fp) | |
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
import time | |
import tornado.gen | |
import tornado.ioloop | |
class Counter: | |
n = 0 | |