Skip to content

Instantly share code, notes, and snippets.

View byrro's full-sized avatar

Renato Byrro byrro

View GitHub Profile
@byrro
byrro / LICENSE
Created November 3, 2022 20:42
Convert pixel color picked using gdbus from float to RGB and HEX
Copyright 2022 Renato Byrro
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
@byrro
byrro / expandable_text_edit.gd
Created March 23, 2022 20:27 — forked from MattUV/expandable_text_edit.gd
Code to expand vertically a TextEdit node to fit the actual number of lines
extends TextEdit
export var expand = true
export var min_line = 3
export var max_line = 6
var scroll_bar
var font = get_font("")
var line_spacing
@byrro
byrro / FuncTools.gd
Last active July 3, 2023 11:31
Algorithms to merge Dictionaries and Arrays in GDScript (Godot Engine), with support for shallow and deep merging
extends Node
func merge_array(array_1: Array, array_2: Array, deep_merge: bool = false) -> Array:
var new_array = array_1.duplicate(true)
var compare_array = new_array
var item_exists
if deep_merge:
compare_array = []
@byrro
byrro / js-crypto-libraries.md
Created December 24, 2020 18:54 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@byrro
byrro / CREDITS.md
Last active August 18, 2020 16:32
AWS Step Functions Example - Data Migration

CREDITS

This code snippet was extracted from an AWS Step Functions example.

It can ben found in the AWS Console for the Step Functions service.

Follow the instructions on this documentation page

Date: 2019-10-16

@byrro
byrro / LICENSE
Last active June 9, 2022 01:36
Asynchronous HTTP requests to AWS Lambda API endpoints
The code in this gist (async_lambda.py) is licensed under the following terms:
MIT License
Copyright (c) 2019 Renato Byrro
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