Skip to content

Instantly share code, notes, and snippets.

View exu3's full-sized avatar

exu3

View GitHub Profile
@quackduck
quackduck / AssertVerifier.java
Created February 9, 2022 02:42
Solve AP CS A assertion problems automatically
package assertion;
import java.util.ArrayList;
public class AssertVerifier {
static int numConditions = 3;
static int numPoints = 5;
// numbers to test
static int start = -100000;
@garyhtou
garyhtou / README.md
Last active April 1, 2022 18:00
Raycast script for opening Heroku Rails Console

Raycast script for opening Heroku Rail Console

optimized for Hack Club Bank

Screen.Recording.2022-01-14.at.6.19.15.PM.mov

Installation

  1. Install Raycast if you don't already have it
  2. Download the bash script below
  3. Follow Raycast's Script Command install (instructions)
@garyhtou
garyhtou / README.md
Last active February 27, 2024 02:57
Creating Hack Club Bank gource

Creating Hack Club Bank gource

  1. Install gource and ffmpeg
    brew install gource
    brew install ffmpeg
  2. Place bank-bg-dark.png in the root of your local copy of the Bank repo
  3. cd /your/bank/repo/location
@joshdholtz
joshdholtz / Indie Dev Monday.js
Created May 9, 2021 01:13
Official Indie Dev Monday Widget For Scriptable
/*
* This is the offical Scriptable widget for Indie Dev Monday
*
* Indie Dev Monday (https://indiedevmonday.com) is a weekly newsletter
* spotlighting indie developers
*
* This script includes:
*
* Latest issue widget (no parameter)
* - shows latest issue
@cjdenio
cjdenio / scrapbook-summer.css
Last active April 1, 2022 05:22
Custom CSS for my Hack Club Summer of Making Scrapbook profile. https://scrapbook.calebdenio.me
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');
.header-title-name {
font-family: "Fira Sans", sans-serif;
text-transform: capitalize;
margin-bottom: 10px;
background: rgba(0, 0, 0, 0.2);
padding: 10px 5px 10px 20px;
display: inline-block;
border-radius: 20px;
@zealot128
zealot128 / ActiveStorageDocxPreviewer.md
Last active September 18, 2023 11:18
Activestorage Docx Previewer

Docx (and other Office doc) previewer support for ActiveStorage

Converts all document formats using LibreOffice first to PDF and then to an image, using build-in pdf previwer of ActiveStorage

  • needs: unoconv, a command line tool which uses libreoffice, e.g. apt install unoconv
  • needs a PDF converter, because libreoffice will make a pdf from the office document, Mupdf oder Poppler are already integrated into ActiveStorage, and poppler is free to use, e.g. apt install poppler-utils
@Yousha
Yousha / .gitignore
Last active November 13, 2024 18:29
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@esteedqueen
esteedqueen / fix_rbenv.md
Last active October 29, 2024 02:55
How to fix rbenv: version `x.x.x` is not installed

So, you just cloned an existing project's repo and you run bundle install but you got the error: rbenv: version x.x.x is not installed....

What the issue means? The project uses a specific ruby version that you do not have on your system.

Here's how to fix it:

  • Install the Ruby build for the specified version using:
rbenv install x.x.x
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active November 15, 2024 16:08
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).