This gist takes heavy inspiration from kevin-smets / iterm2-solarized.md gist for iTerm2.
The first thing that you will want to do is install WSL 2 and a Linux distro.
This gist takes heavy inspiration from kevin-smets / iterm2-solarized.md gist for iTerm2.
The first thing that you will want to do is install WSL 2 and a Linux distro.
# This gist is initially used for analysing data in Spanish | |
import unidecode | |
import csv | |
def remove_accent (feed): | |
csv_f = open(feed, encoding='latin-1', mode='r') | |
csv_str = csv_f.read() | |
csv_str_removed_accent = unidecode.unidecode(csv_str) | |
csv_f.close() |
git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |
#!/usr/bin/env bash | |
# Author: C.J. May @lawndoc | |
# Usage: cloc-gh <username> | |
# Prereqs: cloc gh | |
cloc_repo () { | |
gh repo clone "$1" temp-linecount-repo -- --depth 1 > /dev/null 2>&1 && | |
cloc temp-linecount-repo | grep SUM | awk '{ print $5 }' >> line_count.txt && | |
rm -rf temp-linecount-repo |
// ==UserScript== | |
// @name imgur direct images | |
// @description Redirect to the raw images skipping the crappy HTML pages. | |
// @include /^https?:\/\/imgur\.com\/[A-Za-z0-9]+$/ | |
// @exclude *imgur.com/vidgif | |
// @exclude *imgur.com/jobs | |
// @exclude *imgur.com/about | |
// @exclude *imgur.com/apps | |
// @exclude *imgur.com/tos | |
// @exclude *imgur.com/privacy |
To use devices inside your nspawn container do:
Edit systemd-nspawn@<machine_name>.service
and add a line like the below
DeviceAllow="/dev/serial/by-id/usb-Roboteq_Motor_Controller_SDC2XXX-if00 rwm"
DeviceAllow=char-ttyACM rwm
DeviceAllow=char-usb_device rwm
DeviceAllow=ttyACM rwm
To see valid device types do:
@file:OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class) | |
package de.kuno.listsections | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.compose.animation.core.animateDpAsState | |
import androidx.compose.animation.core.animateRectAsState | |
import androidx.compose.foundation.ExperimentalFoundationApi |
People
:bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |