Skip to content

Instantly share code, notes, and snippets.

View Abdelsattar's full-sized avatar
🎮
Playing with code

Sattar Abdelsattar

🎮
Playing with code
View GitHub Profile
@Abdelsattar
Abdelsattar / empty.json
Last active February 15, 2025 14:20
empty_state.json
{"v":"5.5.9","fr":60,"ip":0,"op":295,"w":426,"h":290,"nm":"search_empty","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"mouth","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":44,"s":[211,145,0],"to":[0,0.667,0],"ti":[0,-0.667,0]},{"t":69,"s":[211,149,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":44,"s":[100,100,100]},{"t":68,"s":[105,105,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.5,0.25],[-1.715,0.372]],"o":[[-13.025,-6.512],[7.5,-1.625]],"v":[[-10,12.25],[-31.75,12.625]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.454901960784,0.513725490196,0.580392156863,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fi
@Abdelsattar
Abdelsattar / InstantExecutorExtension
Created March 21, 2021 15:35
Fix problem live data with Junit 5
import androidx.arch.core.executor.ArchTaskExecutor
import androidx.arch.core.executor.TaskExecutor
import org.junit.jupiter.api.extension.AfterEachCallback
import org.junit.jupiter.api.extension.BeforeEachCallback
import org.junit.jupiter.api.extension.ExtensionContext
class InstantExecutorExtension : BeforeEachCallback, AfterEachCallback {
override fun beforeEach(context: ExtensionContext?) {
ArchTaskExecutor.getInstance().setDelegate(object : TaskExecutor() {
@Abdelsattar
Abdelsattar / bintray_script
Created January 31, 2019 20:48
bintray script for lib
group = publishedGroupId
version = libraryVersion
install {
repositories.mavenInstaller {
pom.project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact
@Abdelsattar
Abdelsattar / key hash for facebook
Created July 28, 2017 22:34
this is the method that will generate for you the key hash of your machine to add it to your facebook app page on developer
// will generate key hash for android for facebook
public String printKeyHash() {
PackageInfo packageInfo;
String key = null;
try {
//getting application package name, as defined in manifest
String packageName = this.getApplicationContext().getPackageName();
//Retriving package info
packageInfo = this.getPackageManager().getPackageInfo(packageName,
public class CheckBoxHolder extends TreeNode.BaseNodeViewHolder<CheckBoxHolder.IconTreeItem> {
boolean isChild;
public CheckBoxHolder(Context context, boolean isChild) {
super(context);
this.isChild = isChild;
}