Skip to content

Instantly share code, notes, and snippets.

View Dynesshely's full-sized avatar
🚀
Fly me to the moon

醉月酿星河 Dynesshely

🚀
Fly me to the moon
View GitHub Profile
@Dynesshely
Dynesshely / brainfuck-1.cpp
Last active February 18, 2024 22:50
Little Brainfuck Executor
#include <bits/stdc++.h>
using namespace std;
int cursor = 0, size, cmd_cursor = 0, loopIndex = 0;
string version = "v0.1.1";
void exe(string cmd), start();
void start(){
printf("You got into Brain Fuck compiler.\n");
printf("This software helps you to run Brain Fuck codes.\n");
printf("Now version : %s\n", version.c_str());
printf("Chars & its meanings : \n");
@Dynesshely
Dynesshely / browser_tips.md
Created January 25, 2024 17:06
Tips for browsers

How to close WebAssembly support ?

  • FireFox
    1. Open new tab -> about:config
    2. Search and modify javascript.options.wasm to false
  • Chrome/Chromium
    1. Add startup argument: chrome.exe --js-flags=--noexpose_wasm
    2. If you're under macOS, do like this: open /Applications/Google\ Chrome.app --args --js-flags=--noexpose_wasm
@Dynesshely
Dynesshely / main.c
Created September 29, 2023 09:48
Calculate the square of the 3x3 two-norm
#include <stdio.h>
int main() {
int matrix_A[3][3] = {0}, sum = 0;
for (int i = 0; i < 3; ++ i)
for (int j = 0; j < 3; ++ j)
scanf("%d", &matrix_A[i][j]);
for (int j = 0; j < 3; ++j)
@Dynesshely
Dynesshely / main.c
Created September 28, 2023 18:21
Convert a decimal number into a binary number in C-Lang, including a handmade stack implement.
#include <stdio.h>
// Declare an array to emulate a stack
// Opacity of this stack is 10000
// `stack_index` is the cursor indicate current position
int stack[10000] = {0}, stack_index = 0;
// Functions define
void push(int x);