Skip to content

Instantly share code, notes, and snippets.

View soroush's full-sized avatar
💭
🙀

Soroush Rabiei soroush

💭
🙀
View GitHub Profile
@soroush
soroush / prime.cpp
Last active February 14, 2022 20:00
#include <iostream>
bool test_prime(const uint64_t n)
{
if (n == 2 || n == 3)
return true;
if (n <= 1 || n % 2 == 0 || n % 3 == 0)
return false;
#ifndef THREAD_POOL_HPP
#define THREAD_POOL_HPP
#include <vector>
#include <queue>
#include <memory>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <future>
@soroush
soroush / .astylerc
Created September 18, 2017 11:47
My Artistic Style (:
--style=stroustrup --indent=spaces=4 --attach-namespaces --attach-classes --attach-inlines \
--indent-classes --indent-col1-comments --pad-oper --unpad-paren \
--align-pointer=name --align-reference=name --convert-tabs --close-templates --max-code-length=150 --lineend=linux
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="yes" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>