File tree Expand file tree Collapse file tree 3 files changed +121
-0
lines changed Expand file tree Collapse file tree 3 files changed +121
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Obsidian
2
+ A collection of obsidian specific styling and configurations, that Im using in my vault.
3
+
4
+ #### Checkboxes
5
+ ```
6
+ - [ ] Unchecked
7
+ - [X] Checked
8
+ - [-] Dropped
9
+ - [>] Forward
10
+ - [D] Date
11
+ - [?] Question
12
+ - [/] Half Done
13
+ - [+] Add
14
+ - [R] Research
15
+ - [!] Important
16
+ - [i] Idea
17
+ - [B] Brainstorm
18
+ - [P] Pro
19
+ - [C] Con
20
+ - [Q] Quote
21
+ - [N] Note
22
+ - [b] Bookmark
23
+ - [I] Information
24
+ - [p] Paraphrase
25
+ - [L] Location
26
+ - [E] Example
27
+ - [A] Answer
28
+ - [r] Reward
29
+ - [c] Choice
30
+ - [d] Doing
31
+ - [T] Time
32
+ - [@] Character / Person
33
+ - [t] Talk
34
+ - [O] Outline / Plot
35
+ - [~] Conflict
36
+ - [W] World
37
+ - [f] Clue / Find
38
+ - [F] Foreshadow
39
+ - [H] Favorite / Health
40
+ - [&] Symbolism
41
+ - [s] Secret
42
+ - [x] Regular
43
+ ```
44
+
45
+ - [ ] Unchecked
46
+ - [X] Checked
47
+ - [ -] Dropped
48
+ - [ >] Forward
49
+ - [ D] Date
50
+ - [ ?] Question
51
+ - [ /] Half Done
52
+ - [ +] Add
53
+ - [ R] Research
54
+ - [ !] Important
55
+ - [ i] Idea
56
+ - [ B] Brainstorm
57
+ - [ P] Pro
58
+ - [ C] Con
59
+ - [ Q] Quote
60
+ - [ N] Note
61
+ - [ b] Bookmark
62
+ - [ I] Information
63
+ - [ p] Paraphrase
64
+ - [ L] Location
65
+ - [ E] Example
66
+ - [ A] Answer
67
+ - [ r] Reward
68
+ - [ c] Choice
69
+ - [ d] Doing
70
+ - [ T] Time
71
+ - [ @] Character / Person
72
+ - [ t] Talk
73
+ - [ O] Outline / Plot
74
+ - [ ~ ] Conflict
75
+ - [ W] World
76
+ - [ f] Clue / Find
77
+ - [ F] Foreshadow
78
+ - [ H] Favorite / Health
79
+ - [ &] Symbolism
80
+ - [ s] Secret
81
+ - [x] Regular
82
+
83
+ #### Admonitions
84
+ > [ !recite|color-blue]
85
+ > test
86
+
87
+ #### Callouts
88
+ > [ !question] Can callouts be nested?
89
+ > > [ !todo] Yes!, they can.
90
+ > > > [ !example] You can even use multiple layers of nesting.
91
+
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ Learning from some youtube guys:
35
35
- [Ruby on Rails - Bounded contexts via interface objects](https://blog.eq8.eu/article/rails-bounded-contexts.html)
36
36
- [Enforcing Modularity inside a Rails Monolith | by Thomas Pagram | The Airtasker Tribe | Medium](https://medium.com/airtribe/enforcing-modularity-inside-a-rails-monolith-f856adb54e1d)
37
37
- [Enforcing Modularity in Rails Apps with Packwerk](https://shopify.engineering/enforcing-modularity-rails-apps-packwerk)
38
+
39
+
38
40
### Pattern matching
39
41
40
42
``` ruby
@@ -363,6 +365,8 @@ Source: [appsignal/blog](https://blog.appsignal.com/2021/08/24/responsible-monke
363
365
## RSpec
364
366
### Bisect flaky tests
365
367
with ` rspec --bisect <file> ` you could find flaky test setting to re-run it.
368
+ > [ !Hint]
369
+ If ` rspec ` exits with ` 1 ` if suite passes, try ` untilpass() { until "$@"; do :; done } ` and run it with ` untilpass rspec ... `
366
370
### Testing an array with attributes
367
371
368
372
``` ruby
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Some interesting ressources for the programming language ruby.
16
16
17
17
## Interesting
18
18
- [ operators] ( https://www.visualmode.dev/ruby-operators )
19
+ - [ understanding ruby] ( https://dev.to/baweaver/understanding-ruby-triple-equals-2p9c )
19
20
20
21
## RVM SSL errors
21
22
@@ -63,6 +64,17 @@ pluralize(count, "apple") # pluralize if count > 1 to apples
63
64
64
65
```
65
66
67
+ ## Scripting
68
+ ``` bash
69
+ require ' bundler/inline'
70
+ gemfile do
71
+ source ' https://rubygems.org'
72
+ gem ' sqlite3'
73
+ end
74
+ # write ruby code below
75
+ ...
76
+ ```
77
+
66
78
## Lambda composition
67
79
Combine lambda blocks together with ` >> ` i.e. to create a new one like ` TAX_FEE = TAX >> FEE `
68
80
@@ -135,6 +147,20 @@ IP_REGEX = /
135
147
```
136
148
Source: [ dev.to/baweaver] ( https://dev.to/baweaver/pattern-matching-interfaces-in-ruby-1b15 )
137
149
150
+ Case for array items:
151
+ ``` ruby
152
+ def process (input )
153
+ case input
154
+ in []
155
+ :empty
156
+ in [* ] if input.all?(Order )
157
+ :has_only_orders
158
+ in [* ] if input.all? (Payment )
159
+ :has_only_payments
160
+ else
161
+ end
162
+ ```
163
+
138
164
## Refinement
139
165
140
166
Extend/overwrite string behavior in module (specific scope)
You can’t perform that action at this time.
0 commit comments