Skip to content

Instantly share code, notes, and snippets.

View mtbossa's full-sized avatar
🇧🇷

Mateus Ribeiro Bossa mtbossa

🇧🇷
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@mtbossa
mtbossa / ts-boilerplate.md
Created March 12, 2023 15:02 — forked from silver-xu/ts-boilerplate.md
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@mtbossa
mtbossa / howto.md
Created December 10, 2022 22:03 — forked from miazga/howto.md
Expo + Android TV
@mtbossa
mtbossa / css-units-best-practices.md
Created September 9, 2022 14:21 — forked from basham/css-units-best-practices.md
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

@mtbossa
mtbossa / keychron_linux.md
Created September 9, 2022 14:20 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@mtbossa
mtbossa / tricks.css
Created February 2, 2022 11:24
CSS tricks
/* For hidding labels */
.sr-only {
position: absolute;
height: 1px;
width: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip-path: rect(0, 0, 0, 0);
white-space: nowrap;
@mtbossa
mtbossa / .zshrc
Last active February 12, 2023 16:48
WSL Configs
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/mtbossa/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@mtbossa
mtbossa / autoexec.cfg
Last active March 3, 2024 16:12
CS GO configs
// T shape purple crosshair = CSGO-C74A4-ohCQM-PriOz-Ptd9e-JxN6H
// T shape green crosshair = CSGO-R9PEE-ASrnG-2pnCC-qmvbT-HS9zP
// Dot crosshair = CSGO-ePGBc-quEju-DMzsB-vM2r7-5AKeB
// Sections:
// 1. Crosshair
// 2. General
// 3. Mouse
// 4. Scripts
// 5. Binds