Skip to content

Instantly share code, notes, and snippets.

View lucis's full-sized avatar
🇧🇷
I can't describe what's happening

Lucis lucis

🇧🇷
I can't describe what's happening
View GitHub Profile
{
"lingua_portuguesa": {
"nome_disciplina": "Língua Portuguesa",
"ano": [
{
"nome_ano": [
"1º"
],
"unidades_tematicas": [
{
[
{
"type": "markdown",
"content": "# Firebase App Generator\n Before starting, watch [the tutorial](https://www.loom.com/share/99140b06774847bbb3f10474160a6e08)\n## Checklist\n - Setup Firebase Project\n - Setup Firebase Web App\n - Setup Firestore Database\n - Setup Authentication\n - Allow your .webdraw.app domain"
},
{
"id": "firebase-config",
"type": "prompt",
"title": "Paste your Firebase Config Here",
"placeholder": "e.g: const firebaseConfig = {...}"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Automato Celeste</title>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
</head>
@lucis
lucis / sections-Component.tsx
Created June 13, 2024 20:19
Useful for HTMX integration with deco.cx
import { useSection } from "deco/hooks/useSection.ts";
import type { AppContext } from "../apps/site.ts";
import type { SectionProps } from "deco/mod.ts";
import { toFileUrl } from "std/path/mod.ts";
interface Props {
component: string;
props?: Record<string, unknown>;
}
@lucis
lucis / proxies.json
Created May 25, 2023 23:39
Using proxies or redirects in deco.cx
{
"audiences": [
{
"name": "vtex_legacy_proxy",
"routes": [
{
"handler": {
"value": {
"url": "https://fashion.bravtexstores.com.br",
"__resolveType": "$live/handlers/proxy.ts"
@lucis
lucis / alias.sh
Created April 27, 2023 16:22
Useful Git alias
alias gp="git pull"
alias gpr="git openpr"
alias gcb="git checkout -b"
alias gc-="git checkout -"
alias grm="git rebase main"
alias grc="git rebase --continue"
alias garc="git add . && git rebase --continue"
alias grh="git reset --hard"
alias gac="git ac"
alias rebasemain="gcm && gp && gc- && grm"
[user]
email = [email protected]
name = Your Name
[credential]
helper = store
[color]
branch = auto
diff = auto
status = auto
ui = auto
@lucis
lucis / preact.code-snnipets
Last active August 21, 2023 23:56
Preact Code Snippets for VSCode (Ctrl + Shift + P -> "Configure User Snippets" -> "New Global Snippets" -> Cola esse arquivo)
{
"Preact Component": {
"prefix": "pc",
"body": [
"export interface Props { $2: $3 }",
"",
"export default function $1({ $2 }: Props) {",
" return (",
" ${0}",
" )",
import "./styles.css";
const template =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAMAAAAcvxc4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAF1QTFRFiIiId3d3REREZmZmVVVVe3t7Q0NDZ2dnAAAAIiIibm5uR0dHGhoaKysrf39/ERERMzMzTU1NTExMGRkZXV1dOzs7CQkJXl5ePDw8CAgIKioqU1NTVFRUUlJSHBwcY2zjYgAAI11JREFUeJzt3e1i4ki2JVAjuD2GawM2tsvQNfP+jzkgHYEiFEDYaZKs7rV+pUGExEnORh8BPDwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVJg0e9N7b0WYHTbmtqv4n3/t/Z/brgP+400f927crNXmh4257SoWh1X8723XASOPJ0/z+fy5mS7vvUm/5BeDY/pY8t3xBAf/qQptslrfY1f/h44xBAf8BsVGeVy9/Pb9jh86xhAc8BuUg2MfHYvfvCGC41sEB3fRNsbrtDVrmvXml7vlm/6g4Fg1me8eQQkO/lO1GZE0xtv8LsnxBwXH/Je3IggO/lONg+PhYRK7HbPfuSGC41sEB3dRCo6Hh/cuOSa/cUMEx7cIDu6iHBwP6/b29W/cEMHxLYKDuzgTHA+b4i7Honlqb/9Y/5XecZyFsZw9fxyWeJ6lF3SnhwUm527a/7ONqvnxfORx0clsPW9HfHxal4+dpuuP7rGHx5SCYznrlnicv1y7VnQ