Skip to content

Instantly share code, notes, and snippets.

View luisFebro's full-sized avatar
💭
web, mobile, backend programmer.

Luis Febro luisFebro

💭
web, mobile, backend programmer.
View GitHub Profile
@prodis
prodis / ramos_de_atividade.txt
Created March 6, 2011 12:14
Lista de ramos de atividade
Alimentos e Bebidas
Arte e Antiguidades
Artigos Religiosos
Assinaturas e Revistas
Automóveis e Veículos
Bebês e Cia
Blu-Ray
Brindes / Materiais Promocionais
Brinquedos e Games
Casa e Decoração
@rxaviers
rxaviers / gist:7360908
Last active April 25, 2025 09:32
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:
@backpackerhh
backpackerhh / core-set.sql
Last active February 4, 2025 21:59
SQL - Social-Network Query Exercises
-- 1. Find the names of all students who are friends with someone named Gabriel.
SELECT H1.name
FROM Highschooler H1
INNER JOIN Friend ON H1.ID = Friend.ID1
INNER JOIN Highschooler H2 ON H2.ID = Friend.ID2
WHERE H2.name = "Gabriel";
-- 2. For every student who likes someone 2 or more grades younger than themselves, return that student's name and grade, and the name and grade of the student they like.
@andywer
andywer / _readme.md
Last active January 8, 2025 04:42
React - Functional error boundaries

React - Functional error boundaries

Thanks to React hooks you have now happily turned all your classes into functional components.

Wait, all your components? Not quite. There is one thing that can still only be implemented using classes: Error boundaries.

There is just no functional equivalent for componentDidCatch and deriveStateFromError yet.

Proposed solution

const path = require('path');
const fs = require('fs');
const glob = require('glob-all');
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
const PurgecssPlugin = require('purgecss-webpack-plugin');
module.exports = {
@rubensflinco
rubensflinco / ramos_de_atividade.json
Last active January 21, 2021 02:23 — forked from prodis/ramos_de_atividade.txt
Lista de ramos de atividade em JSON e Array
{
"ramos_de_atividade": [
"Alimentos e Bebidas",
"Arte e Antiguidades",
"Artigos Religiosos",
"Assinaturas e Revistas",
"Automóveis e Veículos",
"Bebês e Cia",
"Blu-Ray",
"Brindes / Materiais Promocionais",
@Debdutta-Panda
Debdutta-Panda / MainActivity.kt
Created July 20, 2022 19:20
Nested Scroll in Jetpack Compose
package com.debduttapanda.nestedscroll
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.scrollable
@luisFebro
luisFebro / SafeLogUtil.kt
Last active February 23, 2025 18:52
kotlin_dev_only_logger
/**
* Use this Logger utility to prevent app logs from leaking to production by default, following the Android security checklist and Google Play Guideline.
* Useful resources:
* https://youtu.be/Oqmoff2DmFw?t=61s
* https://developer.android.com/studio/publish/#publishing-prepare
* https://developer.android.com/privacy-and-security/security-tips#user-data
* https://www.netguru.com/blog/3-reasons-why-you-should-always-remove-logs-from-production-mobile-app
* adapted from Java: https://stackoverflow.com/a/46363450/10010404
*/
object Lo {