Skip to content

Instantly share code, notes, and snippets.

View styd's full-sized avatar
🏡
Work From Home

Adrian Setyadi styd

🏡
Work From Home
  • Bekasi, Indonesia
  • 08:38 (UTC +07:00)
View GitHub Profile
@mkdika
mkdika / ruby_array_methods_cheatsheet.md
Last active July 2, 2025 19:11
Ruby arrays methods Cheatsheet

Ruby Arrays Methods Cheatsheet

This is collection of Ruby Array methods usage, tips & tricks.

Codes block

# All array method can use do..end block.
[1,2,3].each do |number|
 world = "World #{number}"
@swyxio
swyxio / 1.md
Last active March 23, 2025 07:07
Learn In Public - 7 opinions for your tech career

2019 update: this essay has been updated on my personal site, together with a followup on how to get started

2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos

@Integralist
Integralist / Ruby Lambdas.md
Last active August 8, 2023 05:10
Ruby lambdas

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!