Skip to content

Instantly share code, notes, and snippets.

View giovannipds's full-sized avatar
💭
I may be slow to respond.

G. Pires giovannipds

💭
I may be slow to respond.
View GitHub Profile
@giovannipds
giovannipds / challenge.js
Last active September 2, 2021 21:50
Data structures / linked lists JavaScript challenge
/*
# 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 June 13, 2020 10:09
Things that are missing on next.js
  • Easy auth implementation / strategy through cookies and / or oauth0
  • Easy session flash messages
  • Cookies strategy (nookies)
  • Redirect back at server side
@giovannipds
giovannipds / ezoom-weird-stuff.php
Last active June 13, 2020 10:19
Ezoom Weird Stuff
<!-- 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 November 26, 2018 16:21
Extending bootstrap 3 grid breakpoints
.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 December 12, 2017 11:35
Some npm packages to install globally
  • gulp-cli
  • browser-sync
  • gitmoji-cli
@giovannipds
giovannipds / softwares.md
Last active December 15, 2017 13:14
Softwares to remember to install (on Windows)
  • CCleaner
  • Filezilla
  • HeidiSQL
  • Now
  • Git
  • Composer
  • Docker (Windows 10)
  • 7-Zip
  • K-Lite Codec Pack
  • GitHub
@giovannipds
giovannipds / sublime-packages.md
Last active December 12, 2017 14:16
Just a collection of Sublime Packages
  • Package Control
  • EditorConfig
  • Side Bar Enhancements
  • ApacheConf
  • SASS
  • DotEnv
  • Emmet
  • Materialize
  • Laravel Blade
@giovannipds
giovannipds / .editorconfig
Created December 12, 2017 11:14
My .editorconfig (mainly for Laravel)
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 December 12, 2017 11:11
My global .gitignore. More .gitignores for general projects: https://github.com/github/gitignore
node_modules
.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
npm-debug.log.*
Thumbs.db
yarn-error.log
.DS_Store
.env
@giovannipds
giovannipds / shortcuts
Created August 1, 2014 11:50
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á)