Skip to content

Instantly share code, notes, and snippets.

@Yousha
Yousha / .gitignore
Last active November 13, 2024 18:29
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@Yousha
Yousha / .gitattributes
Last active May 16, 2024 17:23
.gitattributes for C/C++ developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active March 8, 2023 11:17
.gitattributes for PHP developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active February 13, 2024 07:32
.gitattributes for Android(Java/C++) developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active May 18, 2021 06:14
.gitattributes for PAWN developers.
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitignore
Last active May 18, 2021 06:14
.gitignore for PAWN developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@farhadhp
farhadhp / has_duplicated_array.php
Created April 19, 2017 16:43
has_duplicated_array : An simple function to check if given array contains duplicated values
<?php
/*
* Author : Farhad Hassan Pour (https://farhadhp.github.io/)
*/
function has_duplicated_array($arr) {
$count_value = array_count_values($arr);
rsort($count_value);
return $count_value[0] > 1;
}
@Yousha
Yousha / .gitignore
Last active August 25, 2023 07:44
.gitignore for Java/Android developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@Yousha
Yousha / .gitignore
Last active November 5, 2024 20:41
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump