Skip to content

Instantly share code, notes, and snippets.

View ViktorSimko's full-sized avatar
🐿️

Viktor Szilárd Simkó ViktorSimko

🐿️
  • Debrecen, Hungary
View GitHub Profile
hash='0bee89b07a248e27c83fc3d5951213c1'
for i in {a..z}{a..z}{a..z}; do
if [[ $(md5 <<< "$i") == $hash ]]; then
echo "$i"
break
fi
done
#!/bin/bash
sum=0
while read line; do
read -ra cols <<< "$line"
((sum += ${cols[4]}))
done < <(ls -la | tail -n +2 )
echo $sum
#!/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]}
@ViktorSimko
ViktorSimko / frakablak.cpp
Created February 27, 2016 11:43
Biomorph Qt using signals and slots
// 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
@ViktorSimko
ViktorSimko / frakablak.cpp
Created February 27, 2016 11:33
Mandelbrot Qt using signals and slots
// 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
@ViktorSimko
ViktorSimko / 0_reuse_code.js
Created November 27, 2015 17:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console