Skip to content

Instantly share code, notes, and snippets.

View ccarvalho-eng's full-sized avatar
🏰
Working from home

Cristiano Carvalho ccarvalho-eng

🏰
Working from home
  • Coimbra, Portugal
  • 15:15 (UTC +01:00)
View GitHub Profile
1. Fold / Unfold
1. z c → fold
2. z o → unfold
3. z r → open recursively
2. Find + Replace
1. S s p
2. C c + C e
3. :%s/<WORD>/<UPDATED WORD>
4. C c + C c
3. Minimap
```python
class Journal:
def __init__(self, date):
self.date = date
class Meeting(Journal):
def __init__(self, date, time):
super().__init__(date)
self.time = time
```sql
SELECT
json_agg(
json_build_object(
'first_name', u.first_name,
'last_name', u.last_name,
'email', u.email
)
) FROM users AS u
```