Skip to content

Instantly share code, notes, and snippets.

View mcjmigdal's full-sized avatar
🦖
The key to a happy life is to accept that you are never in control

Migdal mcjmigdal

🦖
The key to a happy life is to accept that you are never in control
View GitHub Profile
@asheroto
asheroto / README.md
Last active November 26, 2025 22:08
Nextcloud - Show gallery view by default with public / sharing / shared folders

Nextcloud - Show gallery view by default with public / sharing / shared folders

This will automatically switch a public or shared folder to gallery view when loading.

This only works on public or shared folders on Nextcloud and will not affect normal folders viewed under your user account.

Tested and working on Nextcloud 27+.

How to Configure

  1. Open core/js/public/publicpage.js.
@Nivratti
Nivratti / directory-structure-deep-learning
Last active December 30, 2025 17:44
Directory structure for deep learning projects
project_name/
├── data/ # All data-related directories and files
│ ├── raw/ # Original, immutable data dump
│ ├── processed/ # Data transformed for modeling, such as TFRecords or HDF5
│ ├── interim/ # Temporary processed datasets, possibly smaller or for prototyping
├── docs/ # Project documentation
│ ├── api/ # API reference
│ ├── design_docs/ # Design documents, architectural choices
@mcjmigdal
mcjmigdal / index.html
Last active October 28, 2022 22:51
Javascript FASTA format validator
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div>
<label for="fasta">FASTA</label>
<textarea type="text" id="fasta" rows="15" cols="80" required autofocus onchange="validateFasta()"></textarea>
</div>
@unbracketed
unbracketed / branch-fu.md
Created April 7, 2015 17:49
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@taoliu
taoliu / bdg2bw
Last active November 3, 2024 17:01
bedGraph to bigWig
#!/bin/bash
# check commands: slopBed, bedGraphToBigWig and bedClip
which bedtools &>/dev/null || { echo "bedtools not found! Download bedTools: <http://code.google.com/p/bedtools/>"; exit 1; }
which bedGraphToBigWig &>/dev/null || { echo "bedGraphToBigWig not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
which bedClip &>/dev/null || { echo "bedClip not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
# end of checking