This file contains hidden or 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
| ;;; init.el --- Emacs Multi-Language IDE Configuration | |
| ;;; Commentary: | |
| ;; Source - https://stackoverflow.com/q/79911645 | |
| ;; Posted by Ilian Zapryanov | |
| ;; Retrieved 2026-03-21, License - CC BY-SA 4.0 | |
| ;; | |
| ;; MELPA package repository | |
| (require 'package) | |
| (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) |
This file contains hidden or 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
| Original text: (dat.txt) | |
| A competent translation of the previous pseudocode to real assembly is shown | |
| in Listing 8.2. (This is the version that links via gcc rather than ld. Open it and | |
| build it in SASM.) Read through it and see if you can follow the translation from | |
| the pseudocode, knowing what you already know about assembly language. | |
| The code shown will work but is not “finished” in any real sense. It’s a “first cut” | |
| for real code in the successive refinement process. It needs some hard thinking | |
| about how good and how complete a solution it is to the original problem. |
This file contains hidden or 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
| #!/bin/bash | |
| g++-14 main.cpp -std=c++23 -I/home/ilian/Desktop/Dev/metaspex-2.4.1.ubuntu-24.04.gcc-14.x86_64/metaspex-2.4.1/include/ -I/home/ilian/Desktop/Dev/metaspex-2.4.1.ubuntu-24.04.gcc-14.x86_64/metaspex-2.4.1/ubuntu-24.04.gcc-14.x86_64/third_parties/boost-1.88.0/include/ -I/home/ilian/Desktop/Dev/metaspex-2.4.1.ubuntu-24.04.gcc-14.x86_64/metaspex-2.4.1/ubuntu-24.04.gcc-14.x86_64/third_parties/cryptopp-8.9.0 -L/home/ilian/Desktop/Dev/metaspex-2.4.1.ubuntu-24.04.gcc-14.x86_64/metaspex-2.4.1/ubuntu-24.04.gcc-14.x86_64/lib/opt/libhx2a_batch.a -DHX2A_BATCH |
This file contains hidden or 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> | |
| /** | |
| * | |
| *Entropy coding is a special form of lossless data compression. | |
| *It involves arranging the image components in a "zigzag" order employing run-length encoding (RLE) algorithm that groups similar frequencies together, inserting length coding zeros, and then using Huffman coding on what is left. | |
| The JPEG standard also allows, but does not require, decoders to support the use of arithmetic coding, which is mathematically superior to Huffman coding. | |
| However, this feature has rarely been used, as it was historically covered by patents requiring royalty-bearing licenses, and because it is slower to encode and decode compared to Huffman coding. | |
| Arithmetic coding typically makes files about 5–7% smaller. | |
| The previous quantized DC coefficient is used to predict the current quantized DC coefficient. The difference between the two is encoded rather than the actual value. The encoding of the 63 quantized AC coefficients does not use such prediction differencing. | |
| as given |
This file contains hidden or 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
| // fmake.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
| // | |
| #ifndef _CRT_SECURE_NO_DEPRECATE | |
| #define _CRT_SECURE_NO_DEPRECATE 1 | |
| #endif // !_CRT_SECURE_NO_DEPRECATE - fopen and friends | |
| #include <cstdio> | |
| #include <cstring> | |
| #include <cstdlib> | |
| #include <ctime> |
This file contains hidden or 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> | |
| #include <cstring> | |
| template<typename T> | |
| struct is_validator | |
| { | |
| static const bool value = false; | |
| }; | |
This file contains hidden or 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
| // SAT.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
| // | |
| #include <iostream> | |
| #include <vector> | |
| int main() | |
| { | |
| static const int W = 5; | |
| static const int H = 5; | |
| int counter = 1; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <array> | |
| // this template would tell us the T is not an array like type | |
| // ex. - does not have [n] operator overloaded | |
| // for simplicity - or it's a poorman specialization below | |
| template <typename T> | |
| struct is_arraytype | |
| { |
This file contains hidden or 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
| #ifndef TJSON_H | |
| #define TJSON_H | |
| #include <string> | |
| #include <vector> | |
| #include <iostream> | |
| #ifdef MINJSON | |
| #define NL | |
| #else | |
| #define NL "\r\n" |
This file contains hidden or 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> | |
| #include <string> | |
| #include <vector> | |
| struct ResultT | |
| { | |
| //dummy data | |
| std::string someData; | |
| ResultT() | |
| { |
NewerOlder