Skip to content

Instantly share code, notes, and snippets.

View jaredrummler's full-sized avatar

Jared Rummler jaredrummler

View GitHub Profile
@jaredrummler
jaredrummler / MenuTint.java
Last active April 13, 2022 03:58
Helper class to set the color and transparency for menu icons in an ActionBar or Toolbar.
/*
* Copyright (C) 2015. Jared Rummler <jared.rummler@gmail.com>
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jaredrummler
jaredrummler / Skill.java
Last active December 16, 2021 06:21
Android easing functions. An animation collection to help make animation easier.
/*
* Copyright (C) 2015 Jared Rummler <jared.rummler@gmail.com>
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

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 / colors.xml
Last active July 23, 2021 16:52
Android colors.xml - Material, Holo, and other colors.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Social media and other company colors -->
<eat-comment />
<color name="facebook">#FF3B5998</color>
<color name="twitter">#FF00ACED</color>
<color name="google_plus">#FFDD4B39</color>
<color name="youtube">#FFBB0000</color>
@jaredrummler
jaredrummler / bloomberg-futures.userscript.js
Created March 17, 2021 17:02
Use percent change when viewing futures on Bloomberg
// ==UserScript==
// @name Bloomberg Futures
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Chage table content to use percents for futures
// @author Jared Rummler
// @match https://www.bloomberg.com/markets/stocks/futures
// @grant none
// ==/UserScript==
@jaredrummler
jaredrummler / TimberJava.xml
Created February 11, 2021 18:19 — forked from ericksli/TimberJava.xml
Timber Android Studio live template for Java and Kotlin #kotlin #android
<templateSet group="TimberJava">
<template name="timd" value="timber.log.Timber.d(&quot;$METHOD_NAME$: $content$&quot;);" description="Timber.d(String)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="time" value="timber.log.Timber.e($exception$, &quot;$METHOD_NAME$: $content$&quot;);" description="Timber.e(Exception, String)" toReformat="true" toShortenFQNames="true">
<variable name="exception" expression="" defaultValue="e" alwaysStopAt="true" />
@jaredrummler
jaredrummler / instagram.json
Last active November 14, 2020 01:03
shields.io badges
{
"schemaVersion": 1,
"label": "Instagram",
"message": "jaredrummler",
"color": "#c32aa3",
"namedLogo": "instagram",
"style": "social"
}
@jaredrummler
jaredrummler / IconView.kt
Created October 26, 2020 19:09 — forked from nickbutcher/IconView.kt
A prototype implementation of a shadow effect inspired by the Google Play Games app (https://play.google.com/store/apps/details?id=com.google.android.play.games).
/*
* Copyright 2017 Google Inc.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@jaredrummler
jaredrummler / Prefs.kt
Created May 15, 2018 05:20
Yet another SharedPreference helper written in Kotlin
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
class Prefs(
private val preferences: SharedPreferences,
private val encryptor: StringEncryptor? = null,
private val obfuscator: Obfuscator? = null
) {
MaterialColor createMaterialColor(Color color) {
  List strengths = <double>[.05];
  Map swatch = <int, Color>{};
  final int r = color.red, g = color.green, b = color.blue;

  for (int i = 1; i < 10; i++) {
    strengths.add(0.1 * i);
  }
  strengths.forEach((strength) {