Skip to content

Instantly share code, notes, and snippets.

View RobertRosca's full-sized avatar
🏠
Working from home

Robert Rosca RobertRosca

🏠
Working from home
View GitHub Profile
@RobertRosca
RobertRosca / venv.fish
Last active January 18, 2024 10:44 — forked from tommyip/venv.fish
venv.fish - Automatically activate/deactivate virtualenv in fish shell
# Based on https://gist.github.com/bastibe/c0950e463ffdfdfada7adf149ae77c6f
# Changes:
# * Instead of overriding cd, we detect directory change. This allows the script to work
# for other means of cd, such as z.
# * Update syntax to work with new versions of fish.
# * Handle virtualenvs that are not located in the root of a git directory.
function __auto_source_venv --on-variable PWD --description "Activate/Deactivate virtualenv on directory change"
# Disable for non-interactive use, or on substitutions
if not status --is-interactive || status --is-command-substitution
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RobertRosca
RobertRosca / LICENSE
Created October 14, 2020 11:49 — forked from marinegor/LICENSE
Install all crystallography on Debian-based platform (with sudo, however)
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

XFEL Environment Specification - staged - v0.2.0

Environment created on [CREATION_DATE]

Deployed on [START_DATE]

Changelog

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from karabo_data import RunDirectory\n",
"from karabo_data.geometry2 import DSSC_Geometry"
@RobertRosca
RobertRosca / Quick Start.ipynb
Created February 18, 2019 10:39
JAXTAM Quick Start
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",