Skip to content

Instantly share code, notes, and snippets.

ImGuiStyle& style = ImGui::GetStyle();
style.Alpha = 1.0;
style.WindowFillAlphaDefault = 0.83;
style.ChildWindowRounding = 3;
style.WindowRounding = 3;
style.GrabRounding = 1;
style.GrabMinSize = 20;
style.FrameRounding = 3;
@tomsing1
tomsing1 / seqrc_bed_file_generation.md
Created April 27, 2021 18:37
How to create BED files for use with RSEQC
  1. Download the following two BED files from the RSEQC website, hosted on SourceForge:
  • hg38_RefSeq.bed.gz: All human RefSeq transcripts
  • hg38.HouseKeepingGenes.bed.gz: Subset of human RefSeq transcripts considered housekeeping genes
  1. Extract the RefSeq identifiers from the HouseKeepingGenes file.
  2. Map the RefSeq identifiers to orthologous genes in your species of interest, e.g. using ensembl's BioMart web interface. Make sure the return the gene stable ID for the target species.
@RobinCPC
RobinCPC / wine_setup.md
Last active January 13, 2025 01:31
Wine Setup

Install Wine with Mono & Gecko in Ubuntu 20.04

Warning: Do not try those command in your main PC, I test in a virtual Machine

Note: Most of commands are from the Dockerfile in Reference section. If you want to test wine, just run their docker container

1. Setup PPA

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo tee /etc/apt/trusted.gpg.d/winehq.asc
@deepfates
deepfates / convert_archive.py
Created November 17, 2024 19:33
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple
@RupertBarrow
RupertBarrow / multiline Github Actions output.md
Last active January 13, 2025 01:25
Github Actions - multiline output from a step, with GITHUB_OUTPUT
@krishpop
krishpop / export-toby.js
Last active January 13, 2025 01:24
Export Toby
// code courtesy of Toby team
chrome.storage.local.get("state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);
e.click();
})(`TobyBackup${Date.now()}.json`, o.state)
));
@nicowilliams
nicowilliams / fork-is-evil-vfork-is-good-afork-would-be-better.md
Last active January 13, 2025 01:22
fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid

I recently happened upon a very interesting implementation of popen() (different API, same idea) called popen-noshell using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.

This is not a paper. I assume reader familiarity with fork() in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou

@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active January 13, 2025 01:15
Instructions how to install Debian using debootstrap
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active January 13, 2025 01:15
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example