Skip to content

Instantly share code, notes, and snippets.

View dridk's full-sized avatar

sacha schutz dridk

View GitHub Profile
@dridk
dridk / language.toml
Created October 15, 2023 20:31
helix language
[[language]]
name = "python"
roots = ["pyproject.toml", "setup.py", "Poetry.lock", ".git"]
language-server = { command = "pyright-langserver", args = ["--stdio"] }
auto-format = true
formatter = {command = 'black', args = ["--quiet", "-"]}
config = ""
@dridk
dridk / helix.yaml
Created October 15, 2023 20:30
helix.yaml
theme="onedark"
[editor]
true-color=true
cursorline=true
mouse= true
bufferline="multiple"
[keys.insert]
C-c="normal_mode"
@dridk
dridk / init.lua
Last active October 5, 2023 23:08
my nvim
-- MAP KEY
-- CONFIGURATION
vim.opt.number = true
vim.cmd [[colorscheme slate]]
use vcf::{VCFReader,VCFRecord};
use std::fs::File;
use std::fs::remove_file;
use std::io::BufReader;
use std::str::from_utf8;
use duckdb::{params, Connection};
vim.opt.number = true
vim.opt.mouse = 'a'
vim.opt.ignorecase = true
vim.opt.hlsearch = false
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.termguicolors = true
@dridk
dridk / base.yml
Created May 4, 2022 21:33
Use espanso to translate text with deepl
- regex: ":tr\"(?P<text>.*)\""
replace: "{{translate}}"
vars:
- name: translate
type: shell
params:
cmd: "python ~/translate.py \"{{text}}\""
@dridk
dridk / graph_pyside6.py
Created March 26, 2022 22:58
graph pyside6
from PySide6.QtWidgets import *
from PySide6.QtCore import *
from PySide6.QtGui import *
import math
import networkx as nx
import igraph as ig
class Node(QGraphicsItem):
@dridk
dridk / owl2thesaurus.py
Created January 11, 2022 22:54
OWL to oracle thesaurus
from nxontology.imports import from_file
import networkx as nx
g = from_file("hp.owl")
space = 0
previous_first =""
previous_second =""
tab = " "
@dridk
dridk / vcf_classifieur.py
Created October 13, 2021 19:46
qt example
from PySide2.QtWidgets import *
import sys
class MonWidget(QWidget):
def __init__(self, parent=None):
super().__init__(parent)
hlayout = QHBoxLayout()
self.left_button = QPushButton("<")
@dridk
dridk / test.wig
Created September 23, 2021 15:16
test.wig
track type=wiggle_0 graphType=points name="truc" description="une description" visibility=full color=50,150,255 yLineMark=11.76 yLineOnOff=on
variableStep chrom=chr1
[span=windowSize]
2488157 0.4818
2488159 0.4818
2491207 0.537
2494787 0.5251
6257857 0.488
7434547 0.4077