Skip to content

Instantly share code, notes, and snippets.

@ghadj
ghadj / Dockerfile
Last active November 17, 2024 09:34
A clean Docker linux dev environment without all the associated heaviness of a virtual machine.
FROM ubuntu:latest
ARG BUILD_DATE
# Labels
LABEL maintainer="maintainer <email>"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL description=""
# Disable Prompt During Packages Installation
@danielk333
danielk333 / gcal_events.py
Created May 3, 2021 06:02
Simple script to get google calendar events using the Google API
#!/usr/bin/env python
import datetime
import pathlib
ROOT = pathlib.Path(__file__).resolve().parent
#List of calendar names to get events from
#if empty, just take all calendars
GOOGLE_CALENDARS = [
@oofnikj
oofnikj / answerfile
Last active December 5, 2025 18:17
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@trongthanh
trongthanh / mojave.xml
Last active May 9, 2025 13:17
macOS Mojave dynamic background re-implement as GTK+ background slideshow. Background images are changed to reflect the time of the day.
<!-- Instructions:
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file)
- Save this xml file next to the Mojave background files
- Fix the path to the background images below (better using absolute path)
- Lastly, either:
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path)
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml
-->
<background>

Commit Messages Example Style Guide

Message Structure

A commit messages consists of three distinct parts separated by a blank line: the title, an optional body and an optional footer. The layout looks like this:

type: subject

body
@tarlen5
tarlen5 / calculate_mean_ap.py
Last active May 21, 2025 03:38
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@jmxpearson
jmxpearson / reading_plx_spike_data.ipynb
Last active December 6, 2024 04:44
Reading Plexon data with Neo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wojteklu
wojteklu / clean_code.md
Last active December 6, 2025 13:31
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a