Skip to content

Instantly share code, notes, and snippets.

View raydwaipayan's full-sized avatar
💭
😴

Dwaipayan Ray raydwaipayan

💭
😴
  • Codechef
View GitHub Profile
// This is the stdc++ header taken from redhat sources
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)
// any later version.
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
use strict;
use warnings;
use POSIX;
use File::Basename;
use Cwd;
use File::Find;
use File::Spec::Functions;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@raydwaipayan
raydwaipayan / queue.rs
Created July 27, 2019 18:14
Generic Queue in Rust
const MAX: usize=100;
#[derive(PartialEq, Debug)]
enum QueueError{
Full,
Empty,
}
#[derive(Copy, Clone)]
struct Queue<T>{
rear: usize,
front: usize,