Skip to content

Instantly share code, notes, and snippets.

View ritog's full-sized avatar
🎯
Focusing

Ritobrata Ghosh ritog

🎯
Focusing
View GitHub Profile
@ritog
ritog / alacritty.toml
Created October 6, 2023 10:58
Example configuration file for Alacritty and simple guide
# $HOME/.config/alacritty/alacritty.toml
# by Rito Ghosh 2023-10-06
# Alacritty now uses TOML formatting for its config files.
# This is a simple example.
# There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
# It is not obvious how it translates to TOML. But it is extremely straightforward.
# example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively.
@ritog
ritog / polynomial_factoring.ipynb
Created August 24, 2022 13:12
polynomial factoring with SymPy (a python package)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ritog
ritog / bengali-poets.ipynb
Created July 19, 2021 14:44
bengali-poets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ritog
ritog / copy-of-robi-poems.ipynb
Created July 17, 2021 10:42
Copy of robi-poems.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ritog
ritog / Custom.cmp
Created June 13, 2021 14:48
Comparison file for Custom chip (nand2tetris)
// Custom.cmp
// compare file for chip Custom.hdl
// found at- https://gist.github.com/ghosh-r/c4e6f5ceb1e7ea2e3ba3601c9de121be
// test file at- https://gist.github.com/ghosh-r/cef52b9f6ac017e00d64460b025a53fe
| a | b | c | out |
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
@ritog
ritog / Custom.tst
Created June 13, 2021 08:01
test file for testing custom chip (nand2tetris) Hashnode blog Convoluted demo
// test file for testing custom chip
// could be found at- https://gist.github.com/ghosh-r/c4e6f5ceb1e7ea2e3ba3601c9de121be
// test file for custom chip in Convoluted, a Hashnode blog
load Custom.hdl,
output-file Custom.out,
compare-to Custom.cmp,
output-list a%B3.1.3 b%B3.1.3 c%B3.1.3 out%B3.1.3;
@ritog
ritog / Custom.hdl
Created June 13, 2021 07:58
Creating a custom chip with basic gates (nand2tetris) (Hashnode blog demo)
// Custom.hdl
// this is a part of Hashnode blog Convoluted demo
CHIP Custom {
IN a, b, c;
OUT out;
PARTS:
Not(in=a, out=nota);
Not(in=b, out=notb);
@ritog
ritog / fn.cpp
Created April 16, 2021 19:07
Efficient algorithm for 486A of Codeforces
#include <iostream>
using namespace std;
typedef long long int lli;
int main() {
lli n{0};
cin >> n;
if (n == 3) {
@ritog
ritog / fashion_mnist_training.ipynb
Created November 20, 2020 18:26
Fashion_MNIST_Training.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ritog
ritog / mit_s191_lab1_part1_tensorflow.ipynb
Created November 10, 2020 11:52
MIT_S191_Lab1_Part1_TensorFlow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.