Skip to content

Instantly share code, notes, and snippets.

Avatar
🤩

Giovanni Pires giovannipds

🤩
View GitHub Profile
@giovannipds
giovannipds / challenge.js
Last active Sep 2, 2021
Data structures / linked lists JavaScript challenge
View challenge.js
/*
# Challenge
Given the follow linked lists:
Input: l1 = [2,4,3], l2 = [5,6,4]
Do: 342 + 465 = 807
And output another linked list: [7,0,8]
--
Other example:
Input: l1 = 8,7,5, l2 = 9,0,5
@giovannipds
giovannipds / bad-things-of-next.js.md
Last active Jun 13, 2020
Things that are missing on next.js
View bad-things-of-next.js.md
  • Easy auth implementation / strategy through cookies and / or oauth0
  • Easy session flash messages
  • Cookies strategy (nookies)
  • Redirect back at server side
View ezoom-weird-stuff.php
<!-- Normal Lazy Load -->
<?= lazyload([
'src' => base_url('image/resize_canvas?w=470&h=360&fit=inside&src=https://cdn.sagaentretenimento.com.br/uploads/2016/06/22113456521528.jpg'),
'alt' => 'Dev Star',
'class' => 'lazyload',
'id' => 'dev-star'
]); ?>
<!-- Lazy Load By Event -->
<?= lazyload([
@giovannipds
giovannipds / bootstrap3-xl-sample.css
Created Nov 26, 2018
Extending bootstrap 3 grid breakpoints
View bootstrap3-xl-sample.css
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
@giovannipds
giovannipds / npm-packages.md
Created Dec 12, 2017
Some npm packages to install globally
View npm-packages.md
  • gulp-cli
  • browser-sync
  • gitmoji-cli
@giovannipds
giovannipds / softwares.md
Last active Dec 15, 2017
Softwares to remember to install (on Windows)
View softwares.md
  • CCleaner
  • Filezilla
  • HeidiSQL
  • Now
  • Git
  • Composer
  • Docker (Windows 10)
  • 7-Zip
  • K-Lite Codec Pack
  • GitHub
@giovannipds
giovannipds / sublime-packages.md
Last active Dec 12, 2017
Just a collection of Sublime Packages
View sublime-packages.md
  • Package Control
  • EditorConfig
  • Side Bar Enhancements
  • ApacheConf
  • SASS
  • DotEnv
  • Emmet
  • Materialize
  • Laravel Blade
@giovannipds
giovannipds / .editorconfig
Created Dec 12, 2017
My .editorconfig (mainly for Laravel)
View .editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{md,php}]
indent_size = 4
@giovannipds
giovannipds / .gitignore
Last active Dec 12, 2017
My global .gitignore. More .gitignores for general projects: https://github.com/github/gitignore
View .gitignore
node_modules
.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
npm-debug.log.*
Thumbs.db
yarn-error.log
.DS_Store
.env
View shortcuts
# Atalhos
## SublimeText
- Ctrl S - Salvar
- Ctrl Shift S - Salvar como
- Ctrl O - Abrir arquivo
- Ctrl Enter - Nova linha indentada para baixo
- Ctrl C - Copiar linha
- Ctrl X - Recortar linha (obs.: você pode usar para excluí-lá)
- Shift Delete - Recortar linha (obs.: você pode usar para excluí-lá)