<details> <summary>details</summary> <p> ``` source ```
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
| from PyQt5.QtWidgets import QApplication | |
| import sys | |
| qapp = QApplication(sys.argv) |
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
| # custom format of the git log: git lg | |
| # Thanks to Fanny Rodolakis (@rodolakis)! | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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 | |
| # usage: source ./setup_caQtDM_build_environment.sh | |
| # (empirical) required packages to build on LinuxMint 19 | |
| # ref: https://packages.debian.org/buster/allpackages | |
| # | |
| # error | resolution | |
| # ---------------- | ---------------------------------- | |
| # qmake | `sudo apt-get install qt5-default` |
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
| # bash shell script | |
| # don't add same directory to PATH more than once | |
| # | |
| # EXAMPLES: | |
| # _bin=${HOME}/bin | |
| # if [ -d "${_bin}" ] | |
| # then prepend_path ${_bin} | |
| # fi | |
| # |
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
| from ophyd import EpicsMotor, EpicsSignal, Component | |
| from bluesky import RunEngine | |
| from bluesky import plans as bp | |
| RE = RunEngine({}) | |
| class MyMotor(EpicsMotor): | |
| high_soft_limit = Component(EpicsSignal, '.HLM', kind='omitted') | |
| low_soft_limit = Component(EpicsSignal, '.LLM', kind='omitted') | |
| m1 = MyMotor("vm7:m1", name="m1") |
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 | |
| shopt -s expand_aliases | |
| EPICS_BASE=/usr/local/epics/base-7.0.2 | |
| SUPPORT=R6-0 | |
| CONFIGURE=R6-0 | |
| UTILS=R6-0 | |
| DOCUMENTATION=R6-0 |
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 | |
| # file: epics-env-setup.sh | |
| # purpose: bash shell script to setup EPICS developer's environment | |
| # usage: | |
| # . /complete/path/to/epics-env-setup.sh | |
| # example for ~/.bash_aliases file: | |
| # _script=/usr/local/epics/epics-env-setup.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
| #!/bin/bash | |
| # file: run_pymca.sh | |
| # | |
| # Runs PyMCA from a custom conda environment | |
| # Creates and installs the environment if not present | |
| # Installation can take about ten minutes (depends on workstation) | |
| export CONDA_ENV_NAME=pymca_python3_qt5 | |
| export ACTIVATE=/APSshare/anaconda3/x86_64/bin/activate |
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
| ``` | |
| #!/usr/bin/env python | |
| # Coded for both python2 and python3. | |
| ''' | |
| Create release notes for a new relase of a GitHub repository. | |
| Assumes that the repository has committed work (tags, pulls, | |
| issues, commits) on a milestone. |
NewerOlder