Skip to content

Instantly share code, notes, and snippets.

View pooyaww's full-sized avatar
🕳️

Puya pooyaww

🕳️
View GitHub Profile
@pooyaww
pooyaww / config.sh
Created November 30, 2021 09:21
FLOWER configuration
# use Debug or Release
: ${BUILD_TYPE:=Debug}
: ${CMAKE_MAKE:=""}
: ${MAKE:="make -j4"}
# use this for ninja instead of make
#: ${CMAKE_MAKE:="-G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_PARALLEL_COMPILE_JOBS=4 -DLLVM_PARALLEL_LINK_JOBS=1"}
#: ${MAKE:="ninja"}
@pooyaww
pooyaww / .tmux.conf
Last active June 1, 2021 19:45
TMUX configuration for ubuntu
#allow reload of this file with PRE r
bind r source-file ~/.tmux.conf \; display "Reloaded."
# switch prefix to control-a, unmap b, allow double-a to go through
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# -r repeat time (Default 500 millis)
set -g repeat-time 2000
@pooyaww
pooyaww / lexer.cpp
Created August 13, 2019 08:31 — forked from arrieta/lexer.cpp
Simple C++ Lexer
// A simple Lexer meant to demonstrate a few theoretical concepts. It can
// support several parser concepts and is very fast (though speed is not its
// design goal).
//
// J. Arrieta
// (C) 2018 Nabla Zero Labs
#include <string>
class Token {
@pooyaww
pooyaww / WeightedDirectedAdjacencyListGraph.cpp
Created May 8, 2019 15:10 — forked from quickgrid/WeightedDirectedAdjacencyListGraph.cpp
Inputting and Representing an Weighted Directed graph in adjacency list using C++ STL easy implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Weighted Directed graph
* in adjacency list vector of vector using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@pooyaww
pooyaww / pid.cpp
Created April 25, 2019 12:52 — forked from bradley219/.gitignore
PID C++ implementation
#ifndef _PID_SOURCE_
#define _PID_SOURCE_
#include <iostream>
#include <cmath>
#include "pid.h"
using namespace std;
class PIDImpl
@pooyaww
pooyaww / .gitignore
Last active March 10, 2024 13:02
C snippets
*.out
@pooyaww
pooyaww / Cube.hs
Last active March 27, 2020 19:57
Haskell snippets
-- Put it in a folder named Geometry
module Geometry.Cube
( volume
, area
) where
import qualified Geometry.Cuboid as Cuboid
volume :: Float -> Float
volume side = Cuboid.volume side side side