Skip to content

Instantly share code, notes, and snippets.

View brennop's full-sized avatar
🍉
toma suas vitaminas

Brennim brennop

🍉
toma suas vitaminas
  • wecare
  • nos seus pensamentos
View GitHub Profile

Brenno Pereira Cordeiro

Brasília - DF, Brazil | brennn.in | [email protected]

Goals

I aim for developing quality sofware that solves real problems, learning and improving my soft and hard skills in the process.

Skills

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
@brennop
brennop / youtube-filters.txt
Last active September 19, 2021 19:28
uBlock Origin YouTube Filters
! 2021-09-19 https://www.youtube.com
www.youtube.com###related
www.youtube.com###comments
www.youtube.com###end > .ytd-masthead.style-scope
www.youtube.com###guide-button
www.youtube.com###voice-search-button
www.youtube.com###guide
www.youtube.com##.grid-disabled.grid.ytd-browse.style-scope
www.youtube.com###chat
@brennop
brennop / lint_branch.sh
Created February 17, 2021 21:42
eslint current branch
#!/bin/bash
yarn eslint --fix --no-error-on-unmatched-pattern $(git diff develop... --name-only -- "*.ts" "*.tsx" "*.js" "*.jsx")
@brennop
brennop / useReducer.js
Last active July 15, 2020 01:40
useReducer but it's actually useState (which it's actually useReducer)
import { useState } from "react";
function useReducer(reducer, initialState) {
const [state, setState] = useState(initialState);
const dispatch = action => {
setState(reducer(state, action));
};
return [state, dispatch];
@brennop
brennop / slides.css
Last active March 14, 2020 15:28
Pure markdown + css presentation
/*
Pure markdown + css presentation template
Usage:
1 - write your markdown
2 - compile using some tool that wraps sections in <section> tags
3 - include this css on the file
Example:
pandoc -s slides.md --css slides.css --section-divs
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');