Skip to content

Instantly share code, notes, and snippets.

View exu3's full-sized avatar

exu3

View GitHub Profile
@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
@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;
@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
@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
@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)
@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;