We will examine the byte code to get a sense of how much work the interpreter is doing.
>>> import logging
>>> logger = logging.getLogger()
>>> from dis import dis
# This instruction is for Unix-like OS users. | |
# I refered to the following guide when I wrote it. | |
# https://conda.io/docs/user-guide/tasks/build-packages/recipe.html | |
# Activate an environment if needed | |
conda activate myenv | |
# Install conda-build if you haven't. Ironically, installing conda-build | |
# includes installing python. This python will be effectively replaced with | |
# your new python binary so don't worry. |
record(ao, "test:ao") { | |
field(ASG, "rps_threshold") | |
field(DRVH, "10") | |
field(DRVL, "0") | |
} | |
record(bo, "test:bo") { | |
field(ASG, "rps_lock") | |
field(ZNAM, "OUT") | |
field(ONAM, "IN") |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="x-ua-compatible" content="IE=edge"/> | |
<script type="text/javascript"> | |
function getUrlParameter(name) { | |
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | |
var results = regex.exec(location.search); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); |
conda list -n collection > /tmp/conda-list-before-upgrade.txt
and include it in an Olog entry as an attachment.~/.ipython/profile_colllection
.~/.ipython/profile_collection/acceptance_tests
.ipython --profile=collection -i 01-some-test.py
. See examples from XPD or CSX.--no-deps
to keep conda from installing things you don't want.
With the OS X firewall enabled, you can remove the "Do you want the application "python" to accept incoming network connections?" message. | |
Create a self-signed certificate. | |
Open Keychain Access. Applications > Utilities > Keychain Access. | |
Keychain Access menu > Certificate Assistant > Create a Certificate... | |
Enter a Name like "My Certificate". | |
Select Identity Type: Self Signed Root | |
Select Certificate Type: Code Signing | |
Check the Let me override defaults box |
from OpenGL import GL | |
from PyQt5 import QtWidgets, QtCore, QtGui, QtOpenGL | |
from OpenGL.GL.ARB.texture_rg import GL_R32F | |
import numpy as np | |
import ctypes | |
import time | |
w, h = 400, 400 | |
class TestWidget(QtOpenGL.QGLWidget): |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |