Skip to content

Instantly share code, notes, and snippets.

require "sqlite3"
module ActiveRecord
class Mini
attr_reader :attributes
def initialize(attributes = {})
@attributes = attributes
end

Friendlyrb conference notes

Day 1

I am attending Friendlyrb in Bucharest. In addition to being fascinated by the overwhelming magnificence of the architecture here, I am having a super nice time around fantastic Ruby people, inspiration, and enjoyable talks about Ruby and friendly technologies.

These are some short summaries of what has been talking here today:

Rosa Gutierrez: Invalid byte sequence in UTF-8 😭

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
{
"__inputs": [
{
"name": "DS_LOKI",
"label": "loki",
"description": "",
"type": "datasource",
"pluginId": "loki",
"pluginName": "Loki"
}
@fguillen
fguillen / Common Comment Tags in Ruby.md
Created May 19, 2024 17:45
Common Comment Tags in Ruby

Common Comment Tags in Ruby

In Ruby (and many other programming languages), developers use comment tags to annotate their code for various purposes. These tags help in identifying different types of comments, which can be particularly useful for maintaining and navigating large codebases. Here are some common comment tags you can use:

1. TODO

Indicates something that needs to be done in the future.

# TODO: Implement the authentication logic here

Privacy Policy for Arturito Productions

At Arturito Productions, accessible from https://arturitoproductions.itch.io/, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by Arturito Productions and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in Arturito Productions. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

@fguillen
fguillen / preload_materials.gd
Last active April 3, 2024 00:59
Godot preload and cache Shader Materials to avoid freeze in play mode
# Create a Scene with a Node
# Add this script to it
# Add the Scene to the Autoloads
# Fulfill the material Array with all the Materials that are causing freeze
# It also works with Materials from ParticlesSystems
# preload_materials.gd
extends Node
# Load the array through Inspector
@fguillen
fguillen / GodotVSUnity.md
Last active August 30, 2024 21:08
My Godot VS Unity compare list

Godot is worst (IMO)

  • No way to disable a node (godotengine/godot-proposals#370) neither in code :? (https://godotengine.org/qa/49696/how-to-disable-enable-a-node?show=49754#a49754)
  • Poorer script editor: No multi-cursor (possibility of integrate with VSCode)
  • No realtime Node/Component values on play mode (only explicit external variables)
  • Separate play window and When pause play mode the game screen is hidden
  • Less reactive editor interface. Drag and drop textures
  • Many tricks in KinematicBody like "is in floor" passing a special value to UP in move_and_slide
  • Using -1 to mean Default :?
  • External variables changes don't get activated until you blur the field
@fguillen
fguillen / joicyness_checkbox.md
Last active May 3, 2024 20:52
The check box of the juiciness (A list of juicy elements to add to your videogame to make it feels good)

Visual embellishments (VEs) are design elements that support information already conveyed by other means. In games, this concept is known as juiciness, and refers to the provision of redundant feedback in situations where a single player action triggers multiple non-functional reactions.

Elements

Actors

  • Bounce animation (deformation)
  • Bounce effects (particles)
  • Scale based on velocity (lengthen in the direction)
@fguillen
fguillen / code_style.gd
Last active June 6, 2023 10:30
Godot GD script template with the order of the code sections
# meta-name: Code style template
# meta-description: Empty script with the order of the code sections
# -- 01 @tool
# -- 02 class_name
# -- 03 extends
extends _BASE_
# -- 04 # docstring
#