Skip to content

Instantly share code, notes, and snippets.

View breeze-tabs.css
.close-icon {
list-style-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICBoZWlnaHQ9IjE2IiAgIHdpZHRoPSIxNiIgICB2ZXJzaW9uPSIxLjEiICAgaWQ9InN2ZzIiICAgdmlld0JveD0iMCAwIDE2IDE2Ij4gIDxtZXRhZGF0YSAgICAgaWQ9Im1ldGFkYXRhMTQiPiAgICA8cmRmOlJERj4gICAgICA8Y2M6V29yayAgICAgICAgIHJkZjphYm91dD0iIj4gICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PiAgICAgICAgPGRjOnR5cGUgICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+ICAgICAgICA8ZGM6dGl0bGU+PC9kYzp0aXRsZT4gICAgICA8L2NjOldvcms+ICAgIDwvcmRmOlJERj4gIDwvbWV0YWRhdGE+ICA8ZGVmcyAgICAgaWQ9ImRlZnMxMiIgLz4gIDxnICAgICBpZD0iZzQxMzMiPiAgICA8cGF0aCAgICAgICBzdHlsZT0iZmlsbDojOTI
@flying-sheep
flying-sheep / BSdownload.md
Created Dec 13, 2018 — forked from lh3/BSdownload.md
Download files from Illumina's BaseSpace
View BSdownload.md

References:

Steps:

  1. Follow steps 1-5 in the first link above to acquire access_token. This will take a while, but you only need to do this once. Never share this token!!
  2. Find the file you want to download. Copy the link, which looks something like: https://basespace.illumina.com/sample/9804795/files/tree/NA12878-L1_S1_L001_R1_001.fastq.gz?id=515013503. The "id" is the unique file identifier.
  3. Download the file with: wget -O filename 'https://api.basespace.illumina.com/v1pre3/files/{id}/content?access_token={token}', where {token} is from step 1 and {id} from step 2.
View colormap test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View kBET R.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View altair.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flying-sheep
flying-sheep / PKGBUILD.sh
Created Nov 8, 2018
PKGBUILD for Rambox 0.6 (faulty)
View PKGBUILD.sh
# Maintainer: Philipp A. <flying-sheep@web.de>
pkgname=rambox
pkgver=0.6.2
pkgrel=1
pkgdesc='Free and Open Source messaging and emailing app that combines common web applications into one.'
arch=(i686 x86_64)
depends=(electron)
makedepends=(desktop-file-utils asar ruby npm sencha-cmd-6)
url='http://rambox.pro/'
@flying-sheep
flying-sheep / plot.py
Last active Nov 6, 2018
Plotly python offline click events in notebook
View plot.py
title = 'blah'
iplot(dict(
data=[dict(
type='scatter',
mode='markers',
x=sorted_info.Submission,
y=sorted_info.NSamples,
text=sorted_info.Series.map(lambda s: s.accession),
transforms=[dict(
@flying-sheep
flying-sheep / userChrome.css
Last active Nov 8, 2018 — forked from isacikgoz/userChrome.css
A fix for firefox title bar buttons when you want them to be on the left hand side.
View userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* button box to the left */
#TabsToolbar { direction: rtl }
/* tabs ltr again */
#titlebar-content { direction: rtl }
/* buttons inverted */
#tabbrowser-tabs { direction: ltr }
/* keep these ltr */
#titlebar-max,
@flying-sheep
flying-sheep / setup-hetzner.sh
Last active Sep 24, 2018
Hetzner Arch setup script
View setup-hetzner.sh
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
pacstrap /mnt base grub openssh qemu-guest-agent
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
# Basic setup
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
View hide-top-tabs.css
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
You can’t perform that action at this time.