Skip to content

Instantly share code, notes, and snippets.

View Trivoz's full-sized avatar
🧬
Experimenting with Helix

Trivoz

🧬
Experimenting with Helix
  • Student
  • Sydney, Australia
  • 14:42 (UTC +10:00)
View GitHub Profile
@riccardo1980
riccardo1980 / GithubActionsPytestFlake8.md
Last active February 9, 2024 20:19
Basic GitHub Actions for linting/testing using flake8 and pytest

linting/testing base GitHub Action (flake8 & pytest)

You will find template of required files (requirements.txt, requirements-test.txt, project_package/base.py, tests/base_test.py, python-app.yml) at the end of this gist.

  1. Add base functionality and test files:
    • project_package/base.py
    • tests/base_test.py
  2. Add test requirements
    • requirements-test.txt
  3. Check whether your folders and files structure looks like:
@MarkWarneke
MarkWarneke / Makefile
Created June 18, 2020 12:25
Makefile for python code
# Makefile for python code
#
# > make help
#
# The following commands can be used.
#
# init: sets up environment and installs requirements
# install: Installs development requirments
# format: Formats the code with autopep8
# lint: Runs flake8 on src, exit if critical rules are broken
@Amooti73
Amooti73 / dict.sh
Last active October 5, 2023 23:08
Click and drag to select a word on the screen and send it to rofi to display its definition with sdcv
#!/bin/bash
# Dependencies: tesseract-ocr imagemagick scrot xsel rofi
set -e
SCR_IMG=$(mktemp)
trap 'rm $SCR_IMG*' EXIT
scrot -s "$SCR_IMG.png"
mogrify -modulate 100,0 -resize 400% "$SCR_IMG.png" #should increase detection rate
tesseract "$SCR_IMG.png" "$SCR_IMG" &> /dev/null
@John-Paul-R
John-Paul-R / FabricModList.md
Last active May 2, 2024 16:37
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 7, 2024 00:47
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@anvaka
anvaka / 00.Intro.md
Last active May 5, 2024 12:24
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@prwhite
prwhite / Makefile
Last active May 2, 2024 18:02
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing