Skip to content

Instantly share code, notes, and snippets.

@palicand
palicand / keybase.md
Created October 4, 2017 16:31
Keybase proof

Keybase proof

I hereby claim:

  • I am palicand on github.
  • I am palicand (https://keybase.io/palicand) on keybase.
  • I have a public key ASBOhvUEo4agbs-p_xLk39XCVLiBdlHHp8CE5RTtudmRSQo

To claim this, I am signing this object:

template<typename F, typename Ret, typename ...Args>
static auto cpu_clock(F&& func, Ret& retVal, Args&&... args)
{
auto start = std::clock();
retVal = std::forward<decltype(func)>(func)(std::forward<Args>(args)...);
return (std::clock()-start);
}
@palicand
palicand / autoclick.js
Created October 29, 2013 21:41
Autoclicker for cookieclicker
var clickInterval = 100
var clicker = setInterval(function() {
$("#bigCookie").click();
}, clickInterval);
@palicand
palicand / dfsa_checker.cpp
Last active December 11, 2015 18:28
Checks if deterministic FSA accepts a string. I know that it can be written in a much shorter code, but I tried to do a OOP solution.
#ifndef __PROGTEST__
#include <string>
#include <iostream>
using namespace std;
#endif
enum Symbols { a, b, c, d};
class State
{
private:
bool isFiniteState;