Skip to content

Instantly share code, notes, and snippets.


Jared Rummler jaredrummler

View GitHub Profile
MaterialColor createMaterialColor(Color color) {
  List strengths = <double>[.05];
  Map swatch = <int, Color>{};
  final int r =, g =, b =;

  for (int i = 1; i < 10; i++) {
    strengths.add(0.1 * i);
  strengths.forEach((strength) {
jaredrummler / index.html
Created May 1, 2020
The handbook download animation
View index.html
<div class="container">
<div class="box box-1">
<div class="cover"><img src="" alt=""></div>
<div class="box box-2">
<div class="cover"><img src="" alt=""></div>
<div class="box box-3">
View Prefs.kt
* Copyright (C) 2020 Jared Rummler
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
View MountPoint.kt
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(
jaredrummler /
Created Sep 23, 2019 — forked from loretoparisi/
Extract all frames from a movie using ffmpeg
# Output a single frame from the video into an image file:
ffmpeg -i -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 -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 -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 /
Last active Jul 23, 2019
web scraped all dongers from

Title Content Creator
Shrug ¯_(ツ)_/¯ John
Flex ᕙ(⇀‸↼‶)ᕗ John
Flip Table (╯°□°)╯︵ ┻━┻ John
Flip All Tables ┻━┻︵ (°□°)/ ︵ ┻━┻ John
Angry Face (⋟﹏⋞) John
This Guy (☞゚∀゚)☞
jaredrummler /
Last active Jun 25, 2019
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 /
Last active Jan 9, 2020
Copyright templates for Intellij IDEA
You can’t perform that action at this time.