Skip to content

Instantly share code, notes, and snippets.

View androiddevnotes's full-sized avatar
🐣

Android Dev Notes androiddevnotes

🐣
View GitHub Profile
@androiddevnotes
androiddevnotes / git-cheat-sheet.md
Created August 10, 2021 09:31 — forked from iansheridan/git-cheat-sheet.md
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

@androiddevnotes
androiddevnotes / Oauth1SigningInterceptor.kt
Created August 13, 2021 15:39 — forked from polson/Oauth1SigningInterceptor.kt
An OkHttp interceptor written in Kotlin that does OAuth 1.0a signing
/*
* Copyright (C) 2015 Jake Wharton
* Modified work Copyright 2019 Phil Olson
*
* 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
*
@androiddevnotes
androiddevnotes / stream_chain.svg
Created September 4, 2021 09:43 — forked from amaembo/stream_chain.svg
Stream Chain visualization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@androiddevnotes
androiddevnotes / script.sh
Created February 17, 2022 00:10
Bash script to make directory from file name and move the file inside the directory. Run: bash script.sh
#!/bin/bash
for file in $(find . -name "*.md" -type f)
do
echo "file: $file"
filenamewithextension=${file##*/}
echo "file name with extension: $filenamewithextension"
mkdir ${filenamewithextension%.*}
echo "file name without extension: ${filenamewithextension%.*}"
mv ${filenamewithextension} ${filenamewithextension%.*}/${filenamewithextension}
done
@androiddevnotes
androiddevnotes / ffmpeg.md
Created February 22, 2022 01:52 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@androiddevnotes
androiddevnotes / NoScoreMAL.css
Last active April 16, 2022 23:59
Userstyle to hide scores, views, member count from MyAnimeList to give each anime, manga, light novel a fair chance. Link: https://userstyles.world/style/4220/no-score-mal
/* ==UserStyle==
@name No Score MAL
@version 20220416.23.57
@namespace userstyles.world/user/androiddevnotes
@description Userstyle to hide score, views, and member count on MAL (MyAnimeList). This is so that you won't judge Anime, Manga, and Light Novels by ratings and views but give each one a fair chance.
@author androiddevnotes
@license No License
==/UserStyle== */
@-moz-document url-prefix("https://myanimelist.net/") {
@androiddevnotes
androiddevnotes / NoScoreMDL.css
Last active June 15, 2022 14:07
Userstyle to hide score, views, and member count on MDL (MyDramaList). This is so that you won't judge Dramas by ratings and views but give each one a fair chance. Link: https://userstyles.world/style/5186/no-score-mdl
/* ==UserStyle==
@name No Score MDL
@version 20220615.14.05
@namespace userstyles.world/user/androiddevnotes
@description Userstyle to hide score, views, and member count on MDL (MyDramaList). This is so that you won't judge Dramas by ratings and views but give each one a fair chance.
@author androiddevnotes
@license No License
==/UserStyle== */
@-moz-document domain("mydramalist.com") {
@androiddevnotes
androiddevnotes / ModalBottomSheet.kt
Created November 28, 2022 21:07 — forked from LouisCAD/ModalBottomSheet.kt
Put this in its own Gradle module to have ModalBottomSheet in Material3 (or even without Material Design at all).
package com.louiscad.splitties.eap.bottomsheet
import android.app.Activity
import android.view.ViewGroup
import androidx.activity.compose.BackHandler
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
# pip install pyautogui
# Reference: https://pyautogui.readthedocs.io/en/latest/mouse.html
import pyautogui, sys, time
# Set the timer interval (in seconds)
interval = 0
print('Press Ctrl-C to quit.')