Skip to content

Instantly share code, notes, and snippets.

@mattions
mattions / setup.sh
Last active October 25, 2018 14:25 — forked from fracasula/setup.sh
How to install Bluejeans on Ubuntu
sudo apt install alien -y
sudo alien bluejeans_1.28.9-2_amd64.rpm # or whatever is the file you downloaded from the bluejeans website
sudo dpkg -i bluejeans_1.28.9-2_amd64.deb
cd /lib/x86_64-linux-gnu
#sudo ln -s libudev.so libudev.so.0
sudo ln -s libudev.so.1 libudev.so.0
# now you can launch bluejeans
/opt/bluejeans/bluejeans-bin
@mattions
mattions / launch_st_viewer.sh
Last active May 4, 2018 16:06
SBG FS and ST Viewer helper scripts
# Launch the docker container of the latest st_viewer
# Note: We are using the $SBG_SBFS_MOUNT_POINT variable
# You can replace that with the actual path if you do not
# want to use the env variable. Check the `sbfs-privileges.sh`
# file for details.
#
# The mounted projects will be found at `/STDatasets` mount point
# within the docker container
xhost +local:root
@mattions
mattions / sbfs-privileged.sh
Created April 6, 2018 09:42
Seven Bridges Filesystem helper script
# SBFS Privileged helper script
# Allow root to see projects. Needed if you want to use docker
#
# Note: export the $SBG_SBFS_MOUNT_POINT variable in your
# .bashrc
#
# For Example:
# export SBG_SBFS_MOUNT_POINT=~/sbfs_mount_point
# Make sure the `~/sbfs_mount_point` directory exists
#
@mattions
mattions / INSTALL.md
Created April 17, 2018 20:16 — forked from vfdev-5/INSTALL.md
Jackal simulation in ROS kinetic

Install dependencies :

This is manual way to install necessary packages :

sudo apt-get install ros-kinetic-robot-localization ros-kinetic-controller-manager ros-kinetic-joint-state-controller ros-kinetic-diff-drive-controller ros-kinetic-gazebo-ros ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-plugins             ros-kinetic-lms1xx ros-kinetic-pointgrey-camera-description ros-kinetic-roslint ros-kinetic-amcl ros-kinetic-gmapping      ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-message-runtime ros-kinetic-topic-tools ros-kinetic-teleop-twist-joy

If you want to use rosdep and install all dependencies (for example for doc generation etc), the skip this step.

Create a workspace and clone sources

import pandas as pd
data = {"colA": [1, 2 , 3, 4, 5, 6, 7 ,8],
"colB": ["one", "two", "one", "two", "one", "two", "one", "two"]}
df = pd.DataFrame(data)
# Always use the pattern
# df.loc[<selector>, column_to_change] = value
# selector is usually df['a_column'] == "something"
# the column can be one or more.
import sevenbridges as sbg
c = sbg.Config(profile='cavatica')
api = sbg.Api(config=c)
bg = api.billing_groups.get(id='14bc19f2-6a6a-4a44-bb07-f86020dad9c0')
breakdown = bg.breakdown()
for project_breakdown in breakdown.project_breakdown:
project_id_parsed = (project_breakdown.href.split("/")[-2:])
project_id = "/".join(project_id_parsed)
print(project_id)

FHIR2Metadata bridge

Retrieving the data from the INCLUDE FHIR Data via the FHIR_resource.

Quick help:

 python fhir_trisomy_bridge.py --help
usage: fhir_trisomy_bridge.py [-h] --cavatica_token CAVATICA_TOKEN --cavatica_project CAVATICA_PROJECT
                              --include_fhir_authentication_cookie INCLUDE_FHIR_AUTHENTICATION_COOKIE