Skip to content

Instantly share code, notes, and snippets.

View ritaly's full-sized avatar
🤔
wondering why Github needs a status?

Rita Łyczywek ritaly

🤔
wondering why Github needs a status?
  • Linkedin @ritalyczywek
  • ○°☾☆ universe ☆☾°○
View GitHub Profile
@ritaly
ritaly / set-iterm2.plist
Created January 24, 2024 09:08
set-iterm2.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AllowClipboardAccess</key>
<true/>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>

Zadanie

Twoim zadaniem jest napisanie klasy Customer w języku Python, która będzie reprezentować dane klienta.

Klasa Customer

Pola:

  • prywatne pole name (typ: string): przechowuje imię klienta
@ritaly
ritaly / 000-adr-template.md
Last active December 10, 2021 14:30
Architecture Decision Record simple template

Title

Date: YYYY-MM-DD

Status

What is the status, such as:

  • proposed,
  • accepted,
@ritaly
ritaly / fix_rvm_abort.md
Last active April 19, 2022 15:53
Ruby macOS Catalina: Fixing the abort trap

where: macOS Catalina when: Homebrew’s / rvm after Ruby update to 2.6 or 2.7 fails with abort or Abort trap: 6.
pre: make sure you're using newest rvm version rvm get stable .

All rake and rails command crashed Noticed that rails tasks like rake or rails console, rails db:create, rails db:migrate (info - added only for better googling) these command crashed with the output aborted. No errors only with abord or Abort trap: 6

⚠️ check your local paths!

This is an issue with some OpenSSL libraries. So quick fix:

@ritaly
ritaly / break.py
Created January 9, 2020 09:16 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
@ritaly
ritaly / Avoid_allow_any_instance_of.md
Last active January 22, 2024 23:07
Avoid allow_any_instance_of

Avoid allow_any_instance_of

  • Rails 5+
  • Rspec

I don't wanna be stuck with it again.

Ok, maybe this is trivial, but maybe that'll help someone:

Code example

@ritaly
ritaly / ruby-versions-chruby.md
Created January 21, 2019 11:51 — forked from jbinto/ruby-versions-chruby.md
Dealing with Ruby versions - chruby

Dealing with Ruby versions - chruby

Every time I sit down to code, it seems like a new Ruby version is available.

When I first learned ruby I used rvm on my Mac. In production on linux, I use rbenv, likely due to its Capistrano integration.

When I set up my current machine, I found rvm had fallen out of fashion in favour of something called chruby.

Install new ruby

@ritaly
ritaly / bootstrap4in5min.md
Last active June 10, 2019 09:56
5 min = 5 reasons to fall in love with Bootstrap 4

What exactly Bootstrap is?

  • style guide + code snippets = DESIGN SYSTEM 💖

Put simply:

  • css + js snippets
  • guide for developers with no taste

buttons cards