As configured in my dotfiles.
start new:
tmux
start new with session name:
#enrixpad is free software: you can redistribute it and/or modify | |
#it under the terms of the GNU General Public License as published by | |
#the Free Software Foundation, either version 3 of the License, or | |
#(at your option) any later version. | |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
// .stglobalignore | |
// These prevent SyncThing from trying to sync data that's locked, constantly changing, going to be thrown out, unimportant, etc. | |
// Lots of conflicts/issues disappeared using these ignores, but do check to prevent major disappointment! | |
// *.log and *cache* are in there, just so you know.. but firefox' startupCache and offlineCache will be synced. | |
// Ignores are case sensitive. | |
// Put both .stignore and this .stglobalignore in the root of your sync folder(s) (where .stfolder resides) | |
$RECYCLE.BIN | |
$WINDOWS.~BT |
import gpxpy.parser as parser | |
import gpxpy.gpx as gpx | |
import os | |
import math | |
import datetime | |
## functions | |
def min_max_timestamp(parsed): | |
min_ts = parsed.tracks[0].segments[0].points[0].time | |
max_ts = parsed.tracks[0].segments[0].points[0].time |
#!/usr/bin/env python3 | |
from __future__ import annotations | |
import json | |
class CompactJSONEncoder(json.JSONEncoder): | |
"""A JSON Encoder that puts small containers on single lines.""" | |
CONTAINER_TYPES = (list, tuple, dict) |
# | |
# Simple code editor with syntax highlighting | |
# | |
# import Libraries | |
import tkinter as tk | |
from tkinter import ttk | |
from tkinter import filedialog | |
# create new file |