Skip to content

Instantly share code, notes, and snippets.

@b-coimbra
b-coimbra / yokai-ttv-chat-theme.css
Last active December 15, 2024 19:17
Theme for ttv/kappi_tan
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
span.username {
color: #ffffff !important;
background: linear-gradient(45deg, #5a6ae5, #ffc3e4);
padding: .6rem 1rem .4rem 1rem;
border-radius: 0 100px 100px 100px;
font-size: 10pt;
text-shadow: 0 1px 6px #00000052;
box-shadow: inset 0 0 0 2px #e6d0ff;
@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