This file contains 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
hash='0bee89b07a248e27c83fc3d5951213c1' | |
for i in {a..z}{a..z}{a..z}; do | |
if [[ $(md5 <<< "$i") == $hash ]]; then | |
echo "$i" | |
break | |
fi | |
done |
This file contains 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
#!/bin/bash | |
sum=0 | |
while read line; do | |
read -ra cols <<< "$line" | |
((sum += ${cols[4]})) | |
done < <(ls -la | tail -n +2 ) | |
echo $sum |
This file contains 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
#!/bin/bash | |
deck=({2,3,4,5,6,7,8,9,10,J,D,K,A}{K,SZ,T,P}) | |
for i in $(seq 1 $((RANDOM%1000+300))); do | |
((a=RANDOM%52)) | |
((b=RANDOM%52)) | |
tmp=${deck[$a]} | |
deck[$a]=${deck[$b]} |
This file contains 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
// frakablak.cpp | |
// | |
// Mandelbrot halmaz nagyító | |
// Programozó Páternoszter | |
// | |
// Copyright (C) 2011, Bátfai Norbert, nbatfai@inf.unideb.hu, nbatfai@gmail.com | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or |
This file contains 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
// frakablak.cpp | |
// | |
// Mandelbrot halmaz nagyító | |
// Programozó Páternoszter | |
// | |
// Copyright (C) 2011, Bátfai Norbert, nbatfai@inf.unideb.hu, nbatfai@gmail.com | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |