Skip to content

Instantly share code, notes, and snippets.

View sergiors's full-sized avatar
🎯
Focusing

Sérgio R Siqueira sergiors

🎯
Focusing
View GitHub Profile
@sergiors
sergiors / .vimrc
Last active December 11, 2023 12:49
filetype plugin on
filetype indent on
syntax on
set encoding=utf8
set relativenumber
set number
set mouse=a
set smarttab
from aws_lambda_powertools.event_handler.api_gateway import Response, content_types
import decimal
import json
from datetime import date, datetime
class DecimalEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, decimal.Decimal):
def should_i_wear_this_hat(self, hat):
if not isinstance(hat, Hat):
return False
current_fashion = get_fashion()
weather_outside = self.look_out_of_window()
is_stylish = self.evaluate_style(hat, current_fashion)
if weather_outside.is_raining:
print("Damn.")
return True
@sergiors
sergiors / php_python.md
Created October 21, 2020 19:09
python to php devs
'con' . 'cat'; # concat
strlen('jimi'); # 4
count([1, 2]); # 2
'jimi'[0]; # j
substr('jimi', 0, 2); # ji
str_replace('u', 'o', 'fuu'); # foo
import re
"""
Head=1
|
| __________Tail=[2,3,4,5]
||
[1,2,3,4,5]
[1,2,3,4]=Init________||
|
{
"auto_format_on_save": true
}
@sergiors
sergiors / 3x2.gif
Last active April 11, 2019 13:54
judge me
3x2.gif
@sergiors
sergiors / 3x1.gif
Last active April 11, 2019 03:37
Baby don't
3x1.gif
@sergiors
sergiors / 2x2.gif
Last active April 11, 2019 03:31
?
2x2.gif
@sergiors
sergiors / 2x1.gif
Last active April 11, 2019 13:53
Test
2x1.gif