As configured in my dotfiles.
start new:
tmux
start new with session name:
| pragma solidity 0.5.1; | |
| contract Course { | |
| address admin; | |
| address ManagerContract; | |
| address instructor; | |
| int courseNo; | |
| struct Marks{ |
| pragma solidity 0.5.1; | |
| contract Course { | |
| address admin; | |
| address ManagerContract; | |
| address instructor; | |
| int courseNo; | |
| struct Marks{ |
| FROM centos | |
| RUN yum -y localinstall https://www.linuxglobal.com/static/blog/pdftk-2.02-1.el7.x86_64.rpm | |
| WORKDIR /test | |
| VOLUME ["/test"] |
| import ctypes | |
| import os | |
| from __future__ import absolute_import | |
| from __future__ import unicode_literals | |
| from __future__ import print_function | |
| from commoncode import system | |
| from commoncode import command |
| class trapezium(): | |
| """ | |
| Trapezium class that takes three parameters two of it's | |
| parallel sides(a & b) and height(h) | |
| >>> t1 = trapezium(2,2,4) | |
| >>> t1.area | |
| 8 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| """In mathematics, Pappus's hexagon theorem (attributed to Pappus of Alexandria) states that given one set of | |
| collinear points A, B, C, and another set of collinear points a, b, c, then the intersection points X, Y, Z of | |
| line pairs Ab and aB, Ac and aC, Bc and bC are collinear, lying on the Pappus line. | |
| """ | |
| from sympy import * | |
| from sympy.geometry import * | |
| l1 = Line(Point(0, 0), Point(5, 6)) | |
| l2 = Line(Point(0, 0), Point(2, -2)) |
| py3 | py2 | |
| | | |
| 0.578 {method 'read' of '_io.TextIOWrapper' objects} | 0.566 {method 'read' of 'file' objects} | |
| .007 decimal.py | 0.001 decimal.py | |
| 0.003 threading.py | | |
| 0.001 enum.py | | |
| 0.002 signal.py | | |
| 0.002 decoder.py | | |
| 0.002 tokenize.py | | |
| 0.001 sre_compile.py | |
| # multiprocessing-server code | |
| from fib import fib | |
| from socket import * | |
| from multiprocessing import Process | |
| def fib_server(address): | |
| sock = socket(AF_INET, SOCK_STREAM) | |
| sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) | |
| sock.bind(address) |
| # threaded-server code | |
| from fib import fib | |
| from socket import * | |
| from threading import Thread | |
| def fib_server(address): | |
| sock = socket(AF_INET, SOCK_STREAM) | |
| sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) | |
| sock.bind(address) |