Skip to content

Instantly share code, notes, and snippets.

View fjzeit's full-sized avatar

fj fjzeit

View GitHub Profile
@fjzeit
fjzeit / transp-circle-example.rb
Last active August 28, 2024 07:28
Turns a png into a square png with a round transparent border
require 'rmagick'
include Magick
def create_circular_image(input_path, output_path)
stroke_width = 5 # Set to zero for no outline
# Read the input image
img = Image.read(input_path).first
# Ensure the image is square
@fjzeit
fjzeit / .ideavimrc
Last active September 12, 2024 05:26
fj's ideavimrc for Rider
" Plugins
" https://github.com/TheBlob42/idea-which-key
" https://plugins.jetbrains.com/plugin/7086-acejump
" https://plugins.jetbrains.com/plugin/13360-ideavim-easymotion/
"
" My starting point was this useful blog by cyberwizard
" https://www.cyberwizard.io/posts/the-ultimate-ideavim-setup/
"
" Other things:
"