Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import urllib2 | |
| from base64 import b64encode | |
| request = urllib2.Request('https://api.github.com/user') | |
| request.add_header('Authorization', 'Basic ' + b64encode('user' + ':' + 'pass')) | |
| r = urllib2.urlopen(request) |
| // Copyright (c) 2018 Shahrzad Shirzad | |
| // | |
| // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| #include <phylanx/phylanx.hpp> | |
| #include <hpx/hpx_main.hpp> | |
| #include <iostream> |
| # from pprint import pprint | |
| import codecs | |
| import unicodedata | |
| def get_typename(val): | |
| t = gdb.types.get_basic_type(val.type).tag | |
| if not t: t = val.type.name | |
| return t | |
| def is_graphic(c): |
| *.bat | |
| *.ipynb |
| #include <hpx/hpx.hpp> | |
| #include <hpx/hpx_init.hpp> | |
| #include <hpx/parallel/algorithms/reverse.hpp> | |
| #include <algorithm> | |
| #include <execution> | |
| #include <functional> | |
| #include <random> | |
| #include <vector> | |
| #include "stopwatch.hpp" |