Skip to content

Instantly share code, notes, and snippets.

View franciscofsales's full-sized avatar

Francisco Sales franciscofsales

View GitHub Profile
@franciscofsales
franciscofsales / vscodestyles.css
Last active August 24, 2018 21:50
VSCode custom css
.monaco-shell {
font-family: "Operator Mono", "Inconsolata", monospace;
}
/* This makes the dirty tab circle yellow */
.vs-dark
.monaco-workbench
> .part.editor
> .content
> .one-editor-silo
@franciscofsales
franciscofsales / useClickOutside.tsx
Created December 11, 2019 14:06
Custom hook to trigger callback when there is a click outside the passed in elements or its children
import { useEffect } from 'react';
/**
* Hook that handles clicks outside of the passed refs or its children
*/
export default function useClickOutside(refs: Array<any>, callback: any) {
/**
* Handle click on outside of element
*/
@franciscofsales
franciscofsales / useClickOutside.tsx
Created December 11, 2019 14:06
Custom hook to trigger callback when there is a click outside the passed in elements or its children
import { useEffect } from 'react';
/**
* Hook that handles clicks outside of the passed refs or its children
*/
export default function useClickOutside(refs: Array<any>, callback: any) {
/**
* Handle click on outside of element
*/
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@franciscofsales
franciscofsales / tvheadend-fetch.js
Created October 6, 2023 16:36 — forked from tryvin/tvheadend-fetch.js
TVHeadend JS functions to help handling some copy
function getAllMuxes() {
return fetch('/api/mpegts/mux/grid',
{
body: 'start=0&limit=999999999&sort=name&dir=ASC', method: 'POST',
credentials: 'include',
headers: {
'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
}
}