Skip to content

Instantly share code, notes, and snippets.

@burntcookie90
burntcookie90 / linguist-runner.sh
Last active Feb 23, 2021
runs linguist on ever commit since a date
View linguist-runner.sh
#!/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
View kotterresource.kt
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 / guide.md
Last active Jan 12, 2021
sanderson reading guide
View guide.md

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 Trilogy 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
View Foo.kt
class Foo(val id: String, val name: String, val count: Int?)
@burntcookie90
burntcookie90 / export_google_music.js
Created Jun 27, 2017 — forked from jmiserez/export_google_music.js
(fixed/updated 2016-05-10) Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
View export_google_music.js
// Jeremie Miserez <jeremie@miserez.org>, 2016
//
// A little bit of Javascript to let you export your Google Music library, playlists, and album track lists :)
//
// I posted this as an answer here: http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music
//
// 1. Go to: https://play.google.com/music/listen#/all (or your playlist)
//
// 2. Open a developer console (F12 for Chrome). Paste
// code below into the console.
View gist:58de84861a3b2036ab62e999cc362eb5
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAPoCAYAAABNo9TkAAAgAElEQVR4Xuy9baxm11UmeK6ZDqOZ+E+QHZFyElOFKLWIcaClVgwdS1RsQgQosUAoBgwhCUGyI0dKpMHdYFPYgXaQCMJKeUQmHx4y4BICORG0ArJTqM3QiVpqkriCUEWpiyEum9gK88NRS1jdvqO173lOPWed9bXP+96qivH75973Pfvsj7XXXns9a6299s4wPL137syVw6GjTw/yuXu4v/2Vz13DrbPv+G0qMAzDueHK6euhYb+OTT6HD79uePwjfzdc/c7vGHZ3P9fq53r3Hnxq2Ln521u/7tz71eGenV9rf+Wzs/NMK/+Kvb3hW/7isuF//uDzw5M7O+39vb0rZmXlvbtO3zIcfvONw9mzZ4edL+0Oe685PBw5cmQ4++sPDUd++abhL3d3W11oQ+qXeqRO+d37tDrOnm2P5V3+oK/4DXXKd64Xbco4/uG7vjpV8cn/8bbhLf/LAyGJdz511TDcNrh9lDY/f/tzw5/c95GJdtxPmXcZJ/ovdBLa4IOyPBb0F2PAX/n9gcO/N7xt92dnfX7HcHx4/eHDE42FZn/5vt3zZW7b/1fKCC1B0yfv3xlecevecOLvbxxu+udHhuHo+XEy/VCe/0p9wlvyEd6Qj9CXv4MPhEbDPWeH4c4jjRbu97HHe7/yun0eHPkIA5H+ykf6zHyBttEP8IGUkc9ffnp3+OjR49P8gC/vufmhiUZCf2lPPpifiUfHdpno0gf5CJ1mv9N6wfs77//cgDGBrlhT//dtb2iv3/1njw93/fDVs7p+7sRnZm0cuuezrZ4vvOdc4zeZ92ntnHxsevfJ77t2OPSH+2X5A3rIb1hTeC51vvZ3DrWvjX8+vTu8/k2Hm9wQOSLrV/iH5QnmEvw9a8z5wjKGi4Ae+I3XgOZbPd9CQ9AqqtPqUuNFmfNxjcrY9frScgb1CL+cu2afx/B56PEbhpuufsQe/Y
View keybase.md

Keybase proof

I hereby claim:

  • I am burntcookie90 on github.
  • I am vishnurajeevan (https://keybase.io/vishnurajeevan) on keybase.
  • I have a public key ASDdH2evPoDypCqMg8xlHqIqIPNkfDtsJDbRClvE1Uwowgo

To claim this, I am signing this object:

View gist:c5989536d79a1a5557fcc678d12dfec4
Live image for Fedora 24 doesn't boot, switch to a tty and run `dnf upgrade` as root and reboot
Use the following link to get all deps for android-studio
https://developer.fedoraproject.org/start/sw/mobile-app/mobile-devassistant.html
View gist:50113c960756920dfc38
Battery Rapid Charge, Integrated
System Unit Intel i5-5300U 8GB
ITC - Imaging Service 4 NONE
ITC - Imaging Service 5 NONE
ITC - Imaging Service 6 NONE
ITC - Project Type NONE
ITC - Who Created The Image NONE
Camera 720p HD Camera
Shipping Country USA
AC Adapter and Power Cord 65W AC Adpt US (2pin)
View ActivityExt.kt
@file:JvmName("ActivityUtils")
package io.dwak.sleepcyclealarm.extension
import android.app.Activity
import android.support.annotation.StringRes
import android.widget.Toast
@JvmOverloads
fun Activity.toast(message : String, length : Int = Toast.LENGTH_SHORT) {