Skip to content

Instantly share code, notes, and snippets.

View asajadi84's full-sized avatar
Check my profile

A Sajadi asajadi84

Check my profile
View GitHub Profile
asajadi84 / cookie.js
Created January 2, 2023 16:31
Express JS How to Set and Destroy Cookies (Explain Like I'm 5)
View cookie.js
asajadi84 /
Created August 12, 2019 16:15
Android RTL friendly Snackbar
public void showSnackBar (String myString, boolean longTime) {
int duration = longTime? Snackbar.LENGTH_LONG : Snackbar.LENGTH_SHORT;
Snackbar mySnackbar = Snackbar.make(thePhoto, myString, duration);
View myView = mySnackbar.getView();
//use "" instead of "" if you are not using Androidx
TextView myTextView = (TextView) myView.findViewById(;