Skip to content

Instantly share code, notes, and snippets.

View RickBarretto's full-sized avatar
🎯
Focusing

RickBarretto RickBarretto

🎯
Focusing
View GitHub Profile
@RickBarretto
RickBarretto / 1-Typewriter animation - Explanation.md
Last active July 3, 2023 06:51
Typewriter animation - NoJs/Without Js -- just html and css -- multipleslines

Typewriter - by: @RickBarretto - Github

Its under the MIT License

What's it?

  • It's a nojs code to make the typewriter animation;
  • It's for people that don't want to use JavaScript code because the internet have users that disable the javascript in browser.

How it works?

@RickBarretto
RickBarretto / QImageViewer.py
Created April 14, 2021 20:18 — forked from acbetter/QImageViewer.py
Image Viewer Example by PyQt5 and Python 3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog
@RickBarretto
RickBarretto / Image-Features-Obsidian-Md.css
Last active April 16, 2024 01:16
It's a Css Snippet for Obsidian.md that adds functions to images. (Read my comment)
/*std*/
img:not([alt*='#ico']):not([alt*='#hero']):not(.emoji):not(.img-view)
{
display: block;
margin-left: auto;
margin-right: auto;
width: 75%;
transition: width .3s ease-out;
}
@RickBarretto
RickBarretto / California-Coast-Mod-Obsidian.css
Last active January 2, 2022 18:41
Snippet to do the California Coast Theme for Obsidian.md a little prettier ;)
.modal-bg
{
backdrop-filter: blur(2px);
}
.frontmatter-container
{
margin-bottom: 4rem;
}
@RickBarretto
RickBarretto / Autor-Quote-for-Obsidian-Md.css
Last active January 2, 2022 18:52
A Css Snippet that adds a autor in Quoteblock on Obsidian (Read my comment)
blockquote
{
width: fit-content;
}
blockquote > ul > li
{
text-align: right;
list-style: none;
}
@RickBarretto
RickBarretto / LICENSE-CC0
Last active September 12, 2023 00:50
A collection with gists written in Arturo
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
@RickBarretto
RickBarretto / distribute-windows-msys2.md
Last active April 24, 2024 14:38 — forked from mjakeman/distribute-windows-msys2.md
An easy way to distribute GTK applications and dependenices on Windows

Distribute GTK Apps with Windows (MSYS2)

Make sure package mingw-w64-x86_64-gtk4 is installed. Build your project with a custom prefix (e.g. ~/my-gtk-app-prefix). Navigate to this directory such that you have subdirectories 'bin', 'lib', 'share', etc containing the executable to distribute.

If you want to compile with Adwaita, please check if the package mingw-w64-x86_64-libadwaita is installed. 😉

1. Dependent DLLs

The following command copies all dependent DLLs to the current directory:

@RickBarretto
RickBarretto / kwargs-in-c.c
Created July 31, 2023 22:49
Kwargs (keyword arguments) in C programming language. (Positional and optional arguments)
#include <stdio.h>
/** KW(fn): Just a macro that expands to fn_kwargs
* - fn: the function's name
*/
#define KW(fn) struct fn ## _kwargs
/** def_kwargs(fn, definition)
* - fn: the function's name
* - definition: a block with internal definition of arguments
@RickBarretto
RickBarretto / calc-stack-vm.py
Last active May 23, 2024 11:11
A simple Stack Machine VM created for the Python's Workshop that I I'll teach.
"""
Copyright 2024 RickBarretto
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR