Skip to content

Instantly share code, notes, and snippets.

View Husseinhj's full-sized avatar
🏠
Working from home

Hussein Habibi Juybari Husseinhj

🏠
Working from home
View GitHub Profile
@chitrang200889
chitrang200889 / RecomposeUiComponentOnly.kt
Created January 22, 2024 06:22
Recompose UiComponent Only
data class SellerData(val count: Int)
data class BuyerData(val count: Int)
@Stable
class UiState {
val sellerData = mutableStateOf<SellerData>(SellerData(0))
val buyerData = mutableStateOf<BuyerData>(BuyerData(0))
}
@HarshitRuwali
HarshitRuwali / brigdes-tor-mac.md
Last active April 5, 2025 09:51
Using TOR obsf4 bridges from torrc for Mac's.

Install tor via HomeBrew and start the tor serivce.

brew install tor && brew services start tor

And to use obsf4 proxy we need to install its library/ Use HomeBrew for installation of the library.

brew install obfs4proxy
@alexathylane
alexathylane / iOS Universal Links Support Checklist.md
Last active August 8, 2024 09:35
iOS Universal Links Support Checklist
@joyrexus
joyrexus / README.md
Last active December 30, 2024 01:37
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@lopspower
lopspower / README.md
Last active April 26, 2025 07:14
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@dsparks
dsparks / fanny_example.R
Created December 11, 2012 04:34
Clustering breakfast foods
doInstall <- TRUE
toInstall <- c("ggplot2", "cluster", "MASS", "smacof")
if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")}
lapply(toInstall, library, character.only = TRUE)
# Generate a matrix of dissimilarities from pairwise correlations
data(breakfast) # Preference orderings of breakfast items, from smacof
corrMat <- cor(breakfast, use = "pair")
distMat <- dist(corrMat)