This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am gonaumov on github. | |
* I am georginaumov (https://keybase.io/georginaumov) on keybase. | |
* I have a public key ASBqrhcUN9MAPwhe5lwNqzKBnBKpQDm3_PoDsbEebHYG1Qo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You have the class Tree: | |
class Tree { | |
String sort; | |
int age; | |
double height; | |
} | |
/** | |
After you execute the following code, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------------------- | |
# Note: This bash one linner had been written just for education and demonstration | |
# purposes only. Don't actually use it. It would be very bad joke with your friend! :) | |
# It will replace usage of semicolon (;) with Greek question mark in all | |
# C#, JavaScript and TypeScript files in the directory recursively. | |
# -------------------------------------------------------------------------------------- | |
# | |
# Replace a semicolon (;) with a greek question mark (;) in your friend's | |
# C#, JavaScript or TypeScript code and watch them pull their hair over the syntax error ... | |
# They don't understand it, but their arms go rubbery and their throats constrict. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There was need to convert subtitles encoding in a directory. We - me and my wife use one Ubuntu desktop box | |
# to watch movies. Linux users are used to meet these specific encoding problems if there is cirillyc. | |
# I wrote this one liner in order to convert all subtitles in a directory. | |
# xargs rocks - in that case xargs executes recode windows-1251 for every file which has extenstion .srt | |
ls -A1 | egrep "\.srt'?$" | xargs -n 1 recode windows-1251 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git log | egrep -o "<[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}>" | sort | uniq -c | sort -nk1 -r | awk 'BEGIN {printf "Commits reports from developers:\n"; total=0; } { total+=$1; print } END { printf " " total " total commits\n" }' > report.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["Yes, definitely", "Signs show yes", "Doesn't look good", "Looks good", "Rely on this", "Vague answer, ask again", "Ask later", "My answer is no","As I see it - yes","No doubt","Sources tell me no","Definitely","I can't predict now","Concentrate and ask again","No!","Very likely","Yes","Not after a million years","Undoubtedly yes","I better not say","Very doubtful"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -A1R src/components/ | egrep '.tsx$' | awk 'BEGIN { printf "Components in the code base:\n"; printf ("N component-file recommended-id\n")} {printf(NR);printf(" %s ",$1); printf(" "); gsub(/.tsx$/,""); gsub(/\./,"-"); print $0} END {print "Total", NR}' > report.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --name-status HEAD~1..HEAD | egrep '^(A|M)\s+' | awk 'BEGIN {modified=0;added=0; printf "Git changes statistick\n";} {if($1 == "M") modified++; else if($1== "A") added++} END { printf "Modified " modified; printf " Added " added }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -1 src/www/images/armani-bag/* | egrep -e '-large-' | xargs rm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Complex { | |
double real; | |
double imaginary; | |
} |