Skip to content

Instantly share code, notes, and snippets.

View b-coimbra's full-sized avatar
🌵

Bruno Coimbra b-coimbra

🌵
View GitHub Profile
@b-coimbra
b-coimbra / azure-config-to-json.js
Created August 23, 2021 18:53
converts function app config to standard json
const configuration = [
// YOUR EXPORTED AZURE CONFIGURATION
];
let exportedConfig = {};
configuration.forEach(setting => {
const subkeys = setting.name.split(':');
subkeys.reduce((acc, curr) => {
░ ░
░ ░
░ ░ ▄▀ ▄▀
░ ▄▀ ▄▀
▄▄█\█▄▄▀ ▄▀
__▄`/█/`██`█▄▀__
▄▀·`.,█.██\-██/█`·▀▄
@b-coimbra
b-coimbra / discord-rm-unwanted-buttons.css
Created March 17, 2021 14:17
Removes unwanted 'Gift' and 'Sticker' buttons from Discord.
.buttonContainer-28fw2U:nth-child(3), #sticker-picker-tab, button[aria-label$='gift'] { display: none; }
/* ==UserStyle==
@name Minimal scrollbar - 2/13/2020, 7:05:30 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Replaces the ugly standard scrollbar on all webpages
@author index
==/UserStyle== */
@-moz-document regexp(".*") {
::-webkit-scrollbar {
width: 8px;

Angular stuff to fix

Pasta compartilhada app/shared

  • Distinguir entre o que é uma service, componente, model, mock ou utility
    • shared/
      • components/
      • models/
      • directives/
      • pipes/
      • endpoints/
// extensions.shared.ts
namespace global {
export interface Array<T> {
sortBy(modifier: string, isReverse: boolean): T[];
};
};
Array.prototype.sortBy = function (modifier: string, isReverse: boolean): User[] {
const isNumber = (x: string | number) => typeof x == 'number';
Uptime: 4 days, 2 hours, 50 minutes
* TODO Simp'o'matic: Commands to implement
- [-] .cron
- [-] parse cron's official syntax
- [X] step values (/)
- [ ] range of values (-)
- [ ] limit ranges (hours: [0, 24], months: [0, 30/31])
- [X] any value (*)
function firstNonRepeatableChar(string) {
let chars = [];
[...string].forEach(letter => {
if (!(letter in chars))
chars[letter] = 0;
chars[letter] += 1;
});
return Object.keys(chars).filter(c => chars[c] === 1)[0];
@b-coimbra
b-coimbra / .vimiumrc
Created February 24, 2020 14:17
Vimium settings
unmap s
map e scrollPageUp
map R nextTab
map E previousTab
map s scrollDown
map w scrollUp
map t Vomnibar.activateInNewTab
@b-coimbra
b-coimbra / punpun.gif
Last active February 21, 2020 17:19
punpun.gif