Skip to content

Instantly share code, notes, and snippets.

Subscribe to my newsletter:

Wajahat Karim wajahatkarim3

Subscribe to my newsletter:
View GitHub Profile
rxaviers / gist:7360908
Last active Aug 13, 2022
Complete list of github markdown emoji markup
View gist:7360908


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
public Bitmap ConvertToSepia(Bitmap sampleBitmap){
float[] sepMat = {
package com.firebase.utils;
import java.util.Date;
* Fancy ID generator that creates 20-character string identifiers with the
* following properties:
* 1. They're based on timestamp so that they sort *after* any existing ids.
* 2. They contain 72-bits of random data after the timestamp so that IDs won't
sheerazam /
Created Oct 6, 2016
Fresco Circular Progress Drawable
public final class ArcUtils {
private static final double FULL_CIRCLE_RADIANS = toRadians(360d);
private ArcUtils() { }
* Draws a circular arc on the given {@code Canvas}.
* @param canvas The canvas to draw into.
* @param circleCenter The center of the circle on which to draw the arc.
zymr-keshav / Ubuntu to
Created Sep 15, 2017
useful tweaks and tip while switching from ubuntu to macOS x
View Ubuntu to

MacOS Sierra 10.12.5 Macbook Pro ( Ratina )

Ubuntu to Mac os.

  1. You can not create new file from context menu but can create new folder only. alternative: use touch filename
  2. No utility to lock the monitor alternative: a. Navigate to  icon --> System Prefrences --> Security & Privacy --> General --> Check Require Password immediately after sleep or screen saver starts b. hit Shift-Control-Power hold them down for two seconds, revoke by Spacebar
  3. No way to see hidden files in a folder.
View BaseDao.kt
* Copyright (C) 2017 The Android Open Source Project
* 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
ArthurNagy / RoundedBottomSheetDialogFragment.kt
Last active Feb 14, 2022
Rounded modal bottom sheet as seen in new Google products(Tasks, News, etc.), described in this article:
View RoundedBottomSheetDialogFragment.kt
package com.your.package
import android.os.Bundle
import com.your.package.R
* BottomSheetDialog fragment that uses a custom
RubyLichtenstein /
Last active Feb 11, 2021
Painless android fragments with Kotlin

Starting new fragments with Kotlin is easy


val user = User(id = "id", name = "Ruby")
val userFragment: UserFragment = newFragment<User, UserFragment>(user)

How this magic works


Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.


😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

View ContextExt.kt
package com.shreyaspatil.callbackflownetwork
import android.content.Context
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.MutableStateFlow