Skip to content

Instantly share code, notes, and snippets.

View jaredrummler's full-sized avatar

Jared Rummler jaredrummler

View GitHub Profile
import java.io.File
import java.util.regex.Matcher
import java.util.regex.Pattern
fun String.toFile() = File(this)
operator fun Matcher.get(group: Int): String = group(group)!!
data class MountPoint(

Mormon Memorized Scriptures

Old Testament

Genesis 1:26-27

26 And God said, Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth. 27 So God created man in his own image, in the image of God created he him; male and female created he them.

@jaredrummler
jaredrummler / ffmpeg_frames.sh
Created September 23, 2019 16:25 — forked from loretoparisi/ffmpeg_frames.sh
Extract all frames from a movie using ffmpeg
# Output a single frame from the video into an image file:
ffmpeg -i input.mov -ss 00:00:14.435 -vframes 1 out.png
# Output one image every second, named out1.png, out2.png, out3.png, etc.
# The %01d dictates that the ordinal number of each output image will be formatted using 1 digits.
ffmpeg -i input.mov -vf fps=1 out%d.png
# Output one image every minute, named out001.jpg, out002.jpg, out003.jpg, etc.
# The %02d dictates that the ordinal number of each output image will be formatted using 2 digits.
ffmpeg -i input.mov -vf fps=1/60 out%02d.jpg
gifsicle --unoptimize --explode original.gif && 
find . -iname "*\.gif\.*" | sort > frame_list.txt && 
find . -iname "*\.gif\.*" | sort -r >> frame_list.txt && 
cat frame_list.txt | xargs gifsicle > reversed.gif
@jaredrummler
jaredrummler / Asky.md
Last active May 10, 2023 19:10
web scraped all dongers from dongerlist.com

Title Content Creator
Shrug ¯_(ツ)_/¯ John
Flex ᕙ(⇀‸↼‶)ᕗ John
Flip Table (╯°□°)╯︵ ┻━┻ John
Flip All Tables ┻━┻︵ (°□°)/ ︵ ┻━┻ John
Angry Face (⋟﹏⋞) John
This Guy (☞゚∀゚)☞
@jaredrummler
jaredrummler / 01_README.md
Last active June 25, 2019 21:53
I don't even have any good coding skillz. You know like algorithmic puzzle skills, converting C to x86 assembly using a rock and chisel skills, designing data structures for a 10^10x10^10 Tic-Tac-Toe game skills. Companies only want software engineers who have great skills!

A few leet code like questions/answers from years ago. They aren't optimized but it's my code. I'm a work-in-progress 🙃. Wanted to save some of those old gists and hopefully will add to it in the future.

Android Auto SDK

Getting started

Setup your build environment

  • Install the latest version of the Android SDK. Make sure the following packages are present in the Android SDK:
    • Android SDK Build-tools 25.0.2
    • Android SDK Platform 24
  • Latest Android Support Repository
@jaredrummler
jaredrummler / COPYRIGHT_NOTICE_TEMPLATES.md
Last active March 19, 2024 12:36
Copyright templates for Intellij IDEA
@jaredrummler
jaredrummler / Reflect.kt
Last active June 25, 2019 20:47
Java reflection made easy using Kotlin
import java.lang.reflect.*
object Reflect {
private val cache = mutableMapOf<String, AccessibleObject>()
/**
* Get a method from a class
*
* @param obj
[
{
"pid":1629121,
"fn":"Jaylen",
"ln":"Adams",
"conf":"East",
"ta":"ATL",
"tn":"Atlanta Hawks",
"num":"10",
"pos":"G",