Skip to content

Instantly share code, notes, and snippets.

View Malix-off's full-sized avatar
🌊

Malix Malix-off

🌊
View GitHub Profile
@Malix-off
Malix-off / main.go
Created March 30, 2024 16:56
Go ChainCode Starter
package main
import (
"encoding/json"
"fmt"
"github.com/hyperledger/fabric-contract-api-go/contractapi"
)
type SupplyChainContract struct {
@Malix-off
Malix-off / README.md
Last active February 4, 2024 20:49
Discord Official Hidden Dark Themes CSS

Discord Official Hidden Dark Themes CSS

Latest Update

2024-02-04

Console

Midnight

@Malix-off
Malix-off / 1px black.jpg
Last active January 27, 2024 18:04
1px black.jpg
1px black.jpg
@Malix-off
Malix-off / SimpleCalculator.java
Last active December 11, 2023 14:15
Simplest Java Calculator GUI
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class SimpleCalculator extends JFrame implements ActionListener {
private JTextField displayField;
private double currentValue = 0;
private String currentOperator = "";
@Malix-off
Malix-off / main.sh
Last active November 28, 2023 21:42
Git - StashFlow
#!/bin/bash
# Define the directory for alias hooks
hooks_dir=~/.git/aliasHooks
# Create the directory for alias hooks if it doesn't exist
mkdir "$hooks_dir"
# Create or update the scripts for checkout, switch, and branch
cat >"$hooks_dir/checkout.sh" <<'EOF'
@Malix-off
Malix-off / Animal.java
Last active November 28, 2023 13:49
EFREI-2026-L3-HUNGARY-Java-1
package zoo;
public abstract class Animal {
protected String name;
public Animal(String name) {
this.name = name;
}
public abstract void makeSound();
@Malix-off
Malix-off / Cat.java
Last active November 20, 2023 09:09
L3-Budapest - Java - 5
public class Cat {
private String name;
private int age;
private String color;
public Cat(String name, int age, String color) {
this.name = name;
this.age = age;
this.color = color;
}
@Malix-off
Malix-off / 1.asm
Last active November 13, 2023 11:41
L3-Hungary - Operating System - Assembly 1
section .data
input db "abc", 0
output db 0
section .text
global _start
_start:
; Find the length of the string
mov rsi, input ; rsi points to the string
@Malix-off
Malix-off / .gitignore
Last active October 30, 2023 13:56
Update Launcher
# GitHub Gists
*/
# Environment
*env*
@Malix-off
Malix-off / .gitignore
Last active October 29, 2023 19:37
ESSCA Budapest - Auto Wifi Auth
# GitHub Gists
*/
# Environment
*env*