Skip to content

Instantly share code, notes, and snippets.

@Yousha
Yousha / .gitignore
Last active Oct 22, 2021
.gitignore for C/C++ developers.
View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@Yousha
Yousha / .gitattributes
Last active Oct 19, 2021
.gitattributes for C/C++ developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active Jul 21, 2021
.gitattributes for PHP developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active Oct 1, 2021
.gitattributes for Android(Java/C++) developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitattributes
Last active May 18, 2021
.gitattributes for PAWN developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
@Yousha
Yousha / .gitignore
Last active May 18, 2021
.gitignore for PAWN developers.
View .gitignore
##### 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 Apr 19, 2017
has_duplicated_array : An simple function to check if given array contains duplicated values
View has_duplicated_array.php
<?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 Aug 3, 2021
.gitignore for Java/Android developers.
View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@Yousha
Yousha / .gitignore
Last active Sep 28, 2021
.gitignore for PHP developers.
View .gitignore
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump