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
| import QtQuick | |
| import QtQuick.Layouts | |
| /* This one is used like so: | |
| AltScrollText { | |
| NText { | |
| pointSize: Style.fontSizeS | |
| // here I can use any NText properties | |
| } | |
| maxWidth: 200 |
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
| import QtQuick | |
| import QtQuick.Layouts | |
| import qs.Commons | |
| import qs.Widgets | |
| // TODO: ScrollMode enum | |
| Item { | |
| id: root | |
| // normal NText properties |
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
| import QtQuick | |
| import QtQuick.Layouts | |
| import qs.Commons | |
| import qs.Widgets | |
| Item { | |
| id: scrollText | |
| property string text | |
| property color textColor | |
| property real fontSize |
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
| use buffer_graphics_lib::prelude::*; | |
| use minifb::{Key, Window, WindowOptions}; | |
| const WIDTH: usize = 640; | |
| const HEIGHT: usize = 360; | |
| fn main() { | |
| // window shit | |
| let window = Window::new( | |
| "Test - ESC to exit", |
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
| /* ************************************************************************** */ | |
| /* */ | |
| /* ::: :::::::: */ | |
| /* cube_init.c :+: :+: :+: */ | |
| /* +:+ +:+ +:+ */ | |
| /* By: igvisera <igvisera@student.42madrid.com> +#+ +:+ +#+ */ | |
| /* +#+#+#+#+#+ +#+ */ | |
| /* Created: 2025/03/04 20:31:26 by drestrep #+# #+# */ | |
| /* Updated: 2025/04/25 19:06:03 by anddokhn ### ########.fr */ | |
| /* */ |
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
| ; A dumb comment | |
| global _start | |
| msg: db "global _start",10,"msg: db |",10,"newline_seq: db 34, 44, 49, 48, 44, 34, 0",10,"end_seq: db 34, 44, 48, 0",10,"ft_putchar_real: ; recieves a str ptr, in rsi, only prints the first char",10," mov rax, 1 ; write syscall",10," mov rdi, 1 ; fd 1",10," mov rdx, 1 ; 1 byte",10," syscall ",10," ret",10,"_start:",10," mov rsi, msg",10," call main ; Call the main function, then exit",10," mov rax, 60 ; exit syscall",10," mov rdi, 0 ; status 0",10," syscall",10,"main:; gets input from rsi",10," cmp byte [rsi], 124 ; if is a pipe symbol",10," jne skip ; start of print_escaped",10," push rsi ; save rsi",10," mov rsi, end_seq ; use the first char of that string",10," call ft_putchar_real; print one semi colon",10," mov rsi, msg ; start printing the formatted str",10," loop2:",10," cmp byte [rsi], 10",10," jne skip_format_newline ; if newline",10," push rsi",10," mov rsi, newline_seq",10," call main",10," |
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
| global _start | |
| msg: db "global _start",10,"msg: db |",10,"newline_seq: db 34, 44, 49, 48, 44, 34, 0",10,"end_seq: db 34, 44, 48, 0",10,"ft_putchar_real: ; recieves a str ptr, in rsi, only prints the first char",10," mov rax, 1 ; write syscall",10," mov rdi, 1 ; fd 1",10," mov rdx, 1 ; 1 byte",10," syscall ",10," ret",10,"_start:",10," mov rsi, msg",10," call putstr ; Call the main function, then exit",10," mov rax, 60 ; exit syscall",10," mov rdi, 0 ; status 0",10," syscall",10,"putstr:; gets input from rsi",10," cmp byte [rsi], 124 ; if is a pipe symbol",10," jne skip ; start of print_escaped",10," push rsi ; save rsi",10," mov rsi, end_seq ; use the first char of that string",10," call ft_putchar_real; print one semi colon",10," mov rsi, msg ; start printing the formatted str",10," loop2:",10," cmp byte [rsi], 10",10," jne skip_format_newline ; if newline",10," push rsi",10," mov rsi, newline_seq",10," call putstr",10," pop rsi", |
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 | |
| # set -x | |
| test_number=0; | |
| ptest () { | |
| test_number=$(($test_number + 1)) | |
| echo $test_number | |
| ./push_swap $1 &> out | |
| res=$(cat out | ./checker $1 2>&1) | |
| res2=$(cat out | ./checker_linux $1 2>&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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/gorilla/schema" | |
| ) | |
| type TestStruct struct { | |
| Time time.Time |
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
| // ==UserScript== | |
| // @name New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-12-20 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://www.preciosadictos.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=preciosadictos.com | |
| // @grant none | |
| // ==/UserScript== |
NewerOlder