Skip to content

Instantly share code, notes, and snippets.

@narath
narath / how_to_use_annotations_plugin_with_rails_7.md
Last active February 2, 2024 02:14
How to use the annotations plugin with Rails 7 using Webpacker and Chartkick
yarn add chartjs-plugin-annotation

Then edit app/javascript/application.js

import "chartkick/chart.js"

# Add these lines

Source and credits

Everything below the separator bar is a mirror of the "Find Alternatives for Ourselves Megathread: Third Strike" post by bettervanilla on the r/RedditAlternatives subreddit, found here.

It was last updated on 2023, Aug 6 at or around 1325 EDT. It may or may not get updates going forward, depending on how much free time I have (e.g. don't expect me to update it but I might if I have time). Also, if bettervanilla decides to move his post off of reddit, I plan to update this page to redirect to the new location.

Also found one more really nice list mentioned on the r/linuxmasterrace sub while trying to find where they are migrating to. Thanks to /u/ball_soup for sharing!

https://github.com/maltfield/awesome-lemmy-instances

@cjsim89
cjsim89 / rails_7_cheatsheet.md
Last active May 6, 2024 23:20
Rails 7 Cheatsheet

Rails v7.1.2 Cheatsheet

Updated by: Chris Simmons, based on the 5.2 Cheatsheet by Scott Borecki.

Please reach out if you have any comments or suggestions for updates!

Notes About this Cheatsheet

  • This guide uses Rails version v7.1.2. Run rails -v to check your Rails version number.
  • Code snippets in this cheatsheet starting with $:
  • Run from the terminal, usually within your project directory.
@MarvNC
MarvNC / _yomichan_dictionary_order.md
Last active March 21, 2024 06:10
Yomichan Dictionary Order
@komasaru
komasaru / logistic_regression.rb
Created October 11, 2022 02:33
Ruby script to calculate a logistic regression.
#! /usr/local/bin/ruby
#*********************************************
# Ruby script to compute a logistic regression analysis.
# (by extending the matrix class)
#*********************************************
#
require 'matrix'
class Matrix
ALPHA = 0.01 # 学習率
@huytd
huytd / wordle.md
Last active May 2, 2024 12:13
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@eshrh
eshrh / vns-on-linux.md
Last active May 9, 2024 13:31
Personal guide to visual novels on linux

Concise visual novel setup on linux

also see this guide which has better compatibility. This guide is forked from it. written by kamui-7

This guide is very close to exactly how I run vn's on my setup. I can't guarantee it'll work for everyone (in fact, i can probably guarantee it's broken for someone/some game)

Packages i use

sudo pacman -S wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs lib32-gst-plugins-goo
@gingerbeardman
gingerbeardman / BGA-Koi-Koi.css
Last active January 21, 2023 19:46
Change the look and feel of BoardGameArena Koi-Koi using CSS
/*
Koi-Koi Traditional User Styles
version 20210107
readme https://forum.boardgamearena.com/viewtopic.php?f=78&t=14148
by Matt Sephton
https://boardgamearena.com/player?id=85048132
https://twitter.com/gingerbeardman
@wareya
wareya / texthook.js
Last active July 18, 2020 11:16
subtitle text grabbing script for mpv
"use strict";
function on_new_sub(name, text)
{
if(text == null || text == "")
return;
var newtext = "";
for(var i = 0; i < text.length; i += 1)
{
var c = text[i];