Skip to content

Instantly share code, notes, and snippets.

import androidx.annotation.DrawableRes
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
@burntcookie90
burntcookie90 / guide.md
Last active December 30, 2023 14:41
sanderson reading guide

Lots of books, here's a way to enjoy them! Just my suggestion, I found this to be a great way to get into the overall Cosmere.

Cosmere

  1. Mistborn Era 1
    1. The Final Empire
    2. The Well of Ascension
    3. The Hero of Ages
  2. Elantris (This is one of his first books, it has a noticabley different style, but the story is fun and has some Cosmere stuff for later)
  3. The Emporer's Soul: Elantris Novella
  4. Stormlight Archive #1 : The Way of Kings
@burntcookie90
burntcookie90 / Dockerfile
Created November 16, 2022 22:01
Cuckoo.plus docker
FROM nginx:1.23.2-alpine
WORKDIR /usr/share/nginx/html
RUN wget -O app.zip https://github.com/NanaMorse/Cuckoo.Plus/releases/download/release-22.10.0/release-22.10.0.zip && unzip -o app.zip && rm app.zip
package io.dwak.holohackernews.app.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import com.facebook.rebound.Spring;
import com.facebook.rebound.SpringConfig;
import com.facebook.rebound.SpringListener;
import com.facebook.rebound.SpringSystem;
@burntcookie90
burntcookie90 / linguist-runner.sh
Last active February 23, 2021 03:51
runs linguist on ever commit since a date
#!/usr/bin/bash
for commit in $(git --no-pager log --reverse --after="2016-10-01T10:36:00-07:00" --pretty=format:%H)
do
echo $commit
git checkout $commit
#write linguist data to a file
echo "" >> ~/repo-linguist-report.txt
echo "commit: $commit" >> ~/repo-linguist-report.txt
import android.app.Activity
import android.app.Fragment
import android.support.annotation.BoolRes
import android.support.annotation.StringRes
import android.support.v4.app.DialogFragment
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
//region Boolean
fun Activity.bindBool(@BoolRes id: Int) : ReadOnlyProperty<Activity, Boolean> =
@burntcookie90
burntcookie90 / adb_quick_screen.sh
Created September 24, 2014 15:28
adb_quick_screen.sh
#!/bin/bash
binary=$(which adb)
filename=$HOME/screen_$(date +"%H%M%S").png
if [ -e $binary ]
then
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png $filename
adb shell rm /sdcard/screen.png
echo "Screenshot written to $filename"
@burntcookie90
burntcookie90 / javadoc.gradle
Created April 7, 2014 22:03
Javadoc Gradle Task
android.libraryVariants.all { variant ->
task("${variant.name}Javadoc", type: Javadoc) {
title = "$name $version API"
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
ext.androidJar =
"${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options.links("http://docs.oracle.com/javase/7/docs/api/");
class Foo(val id: String, val name: String, val count: Int?)