http://llvm.org/releases/3.6.1/docs/ReleaseNotes.html http://llvm.org/releases/3.6.0/docs/ReleaseNotes.html http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html http://llvm.org/releases/3.5.1/docs/ReleaseNotes.html http://llvm.org/releases/3.5.0/docs/ReleaseNotes.html http://llvm.org/releases/3.4.2/docs/ReleaseNotes.html http://llvm.org/releases/3.4.1/docs/ReleaseNotes.html http://llvm.org/releases/3.4/docs/ReleaseNotes.html http://llvm.org/releases/3.3/docs/ReleaseNotes.html
This file contains hidden or 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/env python | |
| # SOME DOCS: | |
| # PostgreSQL driver: http://initd.org/psycopg/docs/ | |
| # How to setup PosgreSQL in Docker: https://registry.hub.docker.com/_/postgres/ | |
| import gevent.monkey | |
| gevent.monkey.patch_thread() | |
| import psycogreen.gevent | |
| psycogreen.gevent.patch_psycopg() |
This file contains hidden or 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
| integers_list = has_items(of_type(int)) | |
| assert_that(data, has_entries( | |
| results=integers_list, | |
| total_pages=is_(int), | |
| page=is_(int))) |
This file contains hidden or 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
| (defn blah [foo &optional bar] | |
| (print foo) | |
| (print bar)) | |
| (try | |
| ;; this does not work in Hy-0.11 | |
| (apply blah [1] {"bar" 2}) | |
| (except [e Exception] | |
| (print '(apply blah [1] {"bar" 2}) "does not work, throwing:" e))) |
This file contains hidden or 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
| ;; Данный код написан в соответствии с | |
| ;; инструкцией по тарированию динамометрических ключей | |
| ;; https://yadi.sk/i/aZy87aLPnncDM | |
| (defun dinamo (mz) | |
| "Возвращает массу груза (кг), при которой должно произойти | |
| срабатывание предельного динамометрического ключа, выставленного | |
| на момент закручивания mz" | |
| (let* ((g 9.81) ; ускорение свободного падения (м/с^2) |
This file contains hidden or 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
| # this example shows how to run docker container and use nullmailer, running on a host machine | |
| # first, run a container like that | |
| sudo docker run \ | |
| --rm \ | |
| -ti \ | |
| -v `which sendmail`:`which sendmail` \ | |
| -v `which nullmailer-inject`:`which nullmailer-inject` \ | |
| -v `which nullmailer-queue`:`which nullmailer-queue` \ |
This file contains hidden or 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
| # guess what will be at the output? | |
| class FooError(RuntimeError): | |
| pass | |
| class BarError(RuntimeError): | |
| pass | |
This file contains hidden or 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
| """ | |
| This is a demo of broken traceback | |
| when reraising exception in python 2.x. | |
| In this code, "raise e" makes python | |
| lost original traceback, attached to the | |
| exception. It outputs: | |
| Traceback (most recent call last): | |
| File "/tmp/test.py", line 19, in <module> |
This file contains hidden or 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
| for p in range ( 0, iteration if iteration<5 else 5 ): | |
| threads = list() | |
| up = len_ids/iteration*(p+1) if p!=iteration else len_ids-1 | |
| part_payloads['ids'] = ','.join(list(map(str, payloads['ids'][p*len_ids/iteration:up] ))) | |
| threads.append(gevent.spawn(self.request, part_payloads)) | |
| gevent.joinall(threads) |
This file contains hidden or 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
| django>=1.8,<1.9 | |
| South | |
| djangorestframework<3.0.0 | |
| drf-extensions | |
| django-extensions | |
| django-debug-toolbar | |
| requests>=2.10.0,<2.11.0 | |
| envoy | |
| graphitesend | |
| rq |