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 ruby | |
require 'debugger' | |
TODO_FILE = "#{Dir.home}/.mtodo" | |
COMMANDS = [:list, :remove, :add, :help] | |
class Todo | |
attr_reader :todolist | |
def initialize(todofile) |
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 | |
import argparse | |
import sys, os, time | |
import pandas | |
import requests | |
from elasticsearch import Elasticsearch | |
es = Elasticsearch() | |
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/sh -x | |
DEPLOY_DIR=/root/deploy | |
PROJECT_NAME="$1" | |
cd $DEPLOY_DIR | |
git init --bare ${PROJECT_NAME}.git | |
mkdir $PROJECT_NAME | |
cat <<EOF > ${PROJECT_NAME}.git/hooks/post-update | |
#!/bin/sh | |
GIT_WORK_TREE="${DEPLOY_DIR}/${PROJECT_NAME}" git checkout -f master |
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 python3 | |
import sys | |
import requests | |
import getpass | |
try: | |
host = sys.argv[1] | |
library = sys.argv[2] | |
username = sys.argv[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
from torch import nn | |
import torch | |
from torch.nn.init import kaiming_normal, normal | |
def weights_init(m): | |
if isinstance(m, (nn.Conv1d, nn.Linear)): | |
kaiming_normal(m.weight.data) | |
try: | |
kaiming_normal(m.bias.data) |
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 | |
import sys | |
import re | |
import argparse | |
parser = argparse.ArgumentParser(description='Postprocess/fix org mode tex output') | |
parser.add_argument('--dont-replace-fig-labels', action='store_true') | |
parser.add_argument('--dont-delete-file-output', action='store_true') |
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
function resize() { | |
if (app.documents.length > 0) { | |
var docRef = app.activeDocument; | |
if (docRef.artboards.length > 1) | |
{ | |
alert('Need exactly one artboard'); | |
quit; | |
} | |
// Found 1 artboard | |
var current = docRef.artboards[0].artboardRect; |
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
''' | |
Download a file from SRA (using SRX accessions or anything else that | |
is queryable by esearch) and rename them according to a yaml file. | |
Example yaml file: | |
CXXC1: | |
signal: | |
- SRX373166 | |
control: |
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
name: TEPIC | |
channels: | |
- bioconda | |
- conda-forge | |
- defaults | |
dependencies: | |
- _libgcc_mutex=0.1=conda_forge | |
- _openmp_mutex=4.5=1_gnu | |
- _r-mutex=1.0.1=anacondar_1 | |
- bedtools=2.29.2=hc088bd4_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
#!/usr/bin/env python | |
# coding: utf-8 | |
''' | |
Simply run this script in the output folder of an AlphaFold-run. For more infos on the pLDDT, refer to the original AlphaFold publication (https://www.nature.com/articles/s41586-021-03819-2) | |
https://github.com/deepmind/alphafold/issues/8 | |
''' | |
import json |
OlderNewer