Example showing SwiftBond not connecting to an NSButton properly
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import glob | |
import subprocess | |
from setuptools import setup, find_packages, Extension |
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
#include <Servo.h> | |
#define PIN_X_STEP 4 | |
#define PIN_X_DIR 7 | |
#define PIN_Y_STEP 6 | |
#define PIN_Y_DIR 5 | |
#define PIN_Z 2 | |
#define PIN_ENABLE 3 | |
Servo zServo; |
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
#include <iostream> | |
#include <Python.h> | |
inline void print_stacktrace() | |
{ | |
std::cout << "==== Python Stacktrace ======================================" << std::endl; | |
PyObject *module_name, *pyth_module, *pyth_func; | |
// Import the python traceback module | |
module_name = PyString_FromString("traceback"); | |
pyth_module = PyImport_Import(module_name); |
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
#!/usr/bin/env python | |
import pickle | |
from pprint import pprint | |
import yaml | |
from libtbx.env_config import environment, module, build_options | |
from libtbx.path import relocatable_path, absolute_path | |
def dict_from_module(m, include_name=True): |
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
#!/usr/bin/env python3 | |
""" | |
Reads a libtbx_env file and dumps the entire contents. | |
Some structures e.g. module dictionaries refer to the same object in multiple | |
places. These will be dumped multiple times. Anything that refers back to a | |
previous level will show as "__selfreference__". Relocatable paths are just | |
shown as the regular, joined path (from inspection all base off of the build | |
path anyway). |
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
cmake_minimum_required(VERSION 3.5) | |
# Find python and Boost - both are required dependencies | |
find_package(PythonLibs 2.7 REQUIRED) | |
find_package(Boost COMPONENTS python REQUIRED) | |
# Without this, any build libraries automatically have names "lib{x}.so" | |
set(CMAKE_SHARED_MODULE_PREFIX "") | |
# Add a shared module - modules are intended to be imported at runtime. |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
""" | |
Works out the environmental changes from sourcing a script. | |
Usage: | |
source_diff.py [--bash | --modules] <script> [<arg> [<arg> ...]] | |
source_diff.py -h | --help |
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
111/920 Tests without an instantiation: | |
./cctbx_project/simtbx/nanoBragg/tst_nanoBragg_basic.py | |
./cctbx_project/cctbx/examples/tst_structure_factor_derivatives_3.py | |
./cctbx_project/cctbx/examples/tst_space_subgroups.py | |
./cctbx_project/cctbx/examples/tst_structure_factor_derivatives_2.py | |
./cctbx_project/cctbx/examples/tst_exp_i_alpha_derivatives.py | |
./cctbx_project/cctbx/examples/tst_phase_o_phrenia.py | |
./cctbx_project/cctbx/examples/tst_structure_factor_derivatives.py | |
./cctbx_project/cctbx/examples/tst_g_exp_i_alpha_derivatives.py | |
./cctbx_project/cctbx/examples/tst_structure_factor_derivatives_4.py |
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
#!/bin/bash | |
set +e | |
DOC=$(cat <<'END_HEREDOC' | |
bootstrapbootstrap.sh | |
Bootstraps bootstrap. Installs python/openssl/certificates so that | |
bootstrap can bootstrap on distributions old enough to own several | |
boots with which to wear straps on. |
OlderNewer