Skip to content

Instantly share code, notes, and snippets.

View adityasonel's full-sized avatar
♾️
Wake, Code [Refract], Sleep, Repeat!

Aditya adityasonel

♾️
Wake, Code [Refract], Sleep, Repeat!
View GitHub Profile
@adityasonel
adityasonel / main.go
Last active April 24, 2020 08:26
Benchmarks test to know how much memory can be saved by using struct{} instead of booleans.
package main
import (
"fmt"
"testing"
)
func benchmarkBooleans(b *testing.B) {
s := make(map[int]bool)
@adityasonel
adityasonel / ShadowTextView.java
Created October 31, 2019 04:42
Shadowed textview wrapper over default textview available in Android SDK.
public class ShadowTextView extends TextView {
public ShadowTextView(Context context, AttributeSet attrs) {
super(context, attrs);
final TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.ShadowTextView);
final float shadowRadius;
final float shadowDx;
final float shadowDy;
Privacy Policy
Aditya Sonel built the Litely - Light Phone launcher app as a Freemium app. This SERVICE is provided by Aditya Sonel at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Litely - Light Phone launcher unless otherwise defined in this Privacy Policy.