Skip to content
<T>alreg.com

<T>alreg.com

Code and more (code)

×

<T>alreg.com

  • Home
  • About me

Category: Ruby

Replace a key in a ruby hash
Programming / Ruby
  • September 24, 2020
  • / Leave a Comment on Replace a key in a ruby hash
  • 1 min
  • 3 years

Replace a key in a ruby hash

If you have a perfectly good hash, that you got from another function, but for some reason, you need to change the key(s) in it, there is a simple one liner: So, you have to […]

Read More
Ruby lambdas
Programming / Ruby
  • January 24, 2020
  • / Leave a Comment on Ruby lambdas
  • 2 min
  • 3 years

Ruby lambdas

Ruby lambdas are typical lambda: you can assign them to a variable, call them and use them as closures. To declare a lambda:option 1, using the lambda keyword: This is fairly simple, and in order […]

Read More
Getting the object type in a case statement
Programming / Ruby
  • September 24, 2018
  • / Leave a Comment on Getting the object type in a case statement
  • 1 min
  • 5 years

Getting the object type in a case statement

If you have a case statement and you need to determinate the type, you can’t use something like this: If you’ll run irb and try it with ==, it will work, but not in a […]

Read More
C++ 20 modules -short intro
C++
C++ 20 modules -short intro

Latest Posts

C++ 20 modules -short intro
C++ 20 modules -short intro
July 5, 2021
Transferring your projects to module go
Transferring your projects to module go
March 23, 2021
Custom buttons with Android
Custom buttons with Android
December 25, 2020
Templates: specialization
Templates: specialization
December 14, 2020

Categories

  • Android
  • Ansible
  • Bash
  • C#
  • C++
  • Cloud
  • Database
  • DevOps
  • Express
  • GCP
  • Go
  • Java
  • JavaScript
  • MERN
  • MongoDB
  • Network
  • NodeJS
  • Programming
  • Python
  • Ruby
  • Rust
  • Tips
C++ 20 modules -short intro
Transferring your projects to module go
Custom buttons with Android
Templates: specialization
Rust Regular expressions
Working with Go plugins
C# anonymous class

<T>alreg.com

Proudly powered by WordPress | Theme : New Blog a free WordPress theme : by : Postmagthemes