This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
typedef long long int lli; | |
int main() { | |
lli n{0}; | |
cin >> n; | |
if (n == 3) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder