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
| """ | |
| Aborting transaction context manager, useful for when prototyping on Django. | |
| """ | |
| from contextlib import contextmanager | |
| from django.db import transaction | |
| class AbortTransaction(Exception): | |
| pass | |
| @contextmanager |
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
| The Meson build system | |
| Version: 0.55.3 | |
| Source dir: C:\Users\Stu\Desktop\projects\external\cairo\build\meson-private\dist-unpack\cairo-1.17.3 | |
| Build dir: C:\Users\Stu\Desktop\projects\external\cairo\build\meson-private\dist-build | |
| Build type: native build | |
| WARNING: Unknown options: "c_args, c_link_args, c_winlibs, cpp_args, cpp_eh, cpp_link_args, cpp_rtti, cpp_std, cpp_winlibs" | |
| The value of new options can be set with: | |
| meson setup <builddir> --reconfigure -Dnew_option=new_value ... | |
| Project name: cairo | |
| Project version: 1.17.3 |
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
| # csv_to_xlsx [filename... [filename]] | |
| import csv | |
| import os | |
| import sys | |
| import xlsxwriter | |
| from pathlib import Path | |
| def main(csv_filenames): | |
| if non_files: |
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
| set -ex | |
| cd pycairo | |
| PATH=$PATH:/c/ProgramData/chocolatey/bin:/c/ProgramData/chocolatey/tools | |
| export CAIRO_VERSION=1.17.2 | |
| mkdir -p builds | |
| function do_builds() { | |
| bash -c .travis/runPyCairox64.sh |
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
| def class_repr(self): | |
| """ | |
| Default class repr that outputs the content of a class. | |
| Usage: | |
| >>> class A: | |
| ... __repr__ = class_repr | |
| ... | |
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
| #!/bin/bash | |
| PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" | |
| DEFAULT_MEDIA_DIR=../config/media | |
| # You *really* want to use this via clone-site.sh so that the database matches, | |
| # but it's up to you. | |
| set -e | |
| usage() { | |
| >&2 echo 'Usage: $ clone-bucket.sh cf-app [media directory]' |
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
| #!/bin/bash | |
| set -e | |
| # software requirements: | |
| # awk, jq, pg_dump, psql | |
| # cloudfoundry cli (cf) | |
| # post | |
| # prerequisite: | |
| # empty postgres database named invest-dev |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| FDPP kernel 0.1beta8 [GIT: beta-8-14-ga92a219] (compiled Oct 17 2019) | |
| fdpp: plugin loaded | |
| CONF: config variable parser_version_3 set | |
| CONF: config variable c_system set | |
| CONF: Parsing built-in dosemu.conf file. | |
| CONF: config variable version_3_style_used set | |
| CONF: Parsing built-in global.conf file. | |
| CONF: config variable version_3_style_used unset | |
| CONF: config variable version_3_style_used set | |
| CONF: opened include file /usr/local/etc/dosemu/dosemu.conf |
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
| #!/bin/bash | |
| # Written by Antony Lee (@anntzer). | |
| set -e | |
| PYTHON_VERSION=37 | |
| PIP="/opt/python/cp$PYTHON_VERSION-cp${PYTHON_VERSION}m/bin/pip" | |
| if ! [[ -e "$PIP" ]]; then | |
| # Not in the manylinux image yet: call self from within docker. | |
| docker run -it \ |