Skip to content

Instantly share code, notes, and snippets.

View felipelssilva's full-sized avatar
๐Ÿ 
Working from home

Felipe Luis felipelssilva

๐Ÿ 
Working from home
View GitHub Profile
@t3dotgg
t3dotgg / try-catch.ts
Last active July 22, 2025 08:26
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@AnoRebel
AnoRebel / PullRefresh.vue
Created September 2, 2022 00:44
A Vue 3 `PullRefresh` component copied and fixed/enhanced since I couldn't find the original repo
<template>
<div class="pull-refresh" ref="root">
<div
class="pull-refresh__track"
:style="trackStyle"
@touchstart="onTouchStart"
@touchmove="onTouchMove"
@touchend="onTouchEnd"
@touchcancel="onTouchend"
>
@Coocla33
Coocla33 / widget.css
Last active December 15, 2023 23:05
Streamelements Custom Widget Template
@import url('https://fonts.googleapis.com/css2?family={{font_name}}:ital,wght@{{font_weight}}&display=swap');
* {
font-family: '{{font_name}}', cursive;
color: {{font_color}} !important;
font-size: {{font_size}}px !important;
font-weight: {{font_weight}} !important;
-webkit-text-stroke: {{font_border_size}}px {{font_border_color}};
}
@gaearon
gaearon / index.html
Last active March 10, 2025 04:43
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@luisfc
luisfc / install nodejs, npm and gulp
Last active October 3, 2020 16:37
Install nodejs, npm and gulp ubuntu 16.04
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
## Use n module from npm in order to upgrade node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@vidaaudrey
vidaaudrey / ie67891011-css-hacks.txt
Created June 19, 2016 20:52 — forked from ricardozea/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@stinoga
stinoga / console.js
Created December 27, 2014 22:18
Save console output to a file
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
@rxaviers
rxaviers / gist:7360908
Last active July 22, 2025 14:04
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: