Skip to content

Instantly share code, notes, and snippets.

View alissonmarcs's full-sized avatar

Alisson alissonmarcs

  • São Bernardo do Campo, São Paulo, Brasil
  • 22:25 (UTC -03:00)
  • LinkedIn in/alissonmarcs
View GitHub Profile
@devinschumacher
devinschumacher / tailwind-layouts.md
Last active July 8, 2025 09:39
Common Webpage Layouts With TailwindCSS Using CSS Grid & Flex box (w/ Code Examples)
title tags
Common Webpage Layouts With TailwindCSS Using CSS Grid & Flex box (w/ Code Examples)
css
frontend
tailwind
css grid
css flex box

Creating Common Webpage Layouts With TailwindCSS Using CSS Grid & CSS Flex box (w/ Code Examples)

  • CSS Grid: for the main page layout (header, main content, sidebar, footer)
  • CSS Flexbox: for smaller components within those grid areas (like navigation menus, lists of items, or aligning content within a section)
@EteimZ
EteimZ / index.js
Created November 6, 2023 21:33
Cookie based Authentication in vanilla node js
const http = require('http');
const fs = require('fs');
const url = require('url');
// Simulated user data
const users = [
{ id: 1, username: 'john_doe', password: 'password123' },
{ id: 2, username: 'jane_smith', password: 'example456' }
];
@stokito
stokito / README.md
Last active June 29, 2025 14:58
CGI shell scripts samples

CGI samples

CGI Variables

Standard set of Common Gateway Interface environment variable are described in RFC3875. For example:

CONTENT_TYPE=application/x-www-form-urlencoded
GATEWAY_INTERFACE=CGI/1.1
REMOTE_ADDR=192.168.1.180
QUERY_STRING=Zbr=1234567&SrceMB=&ime=jhkjhlkh+klhlkjhlk+%A9%D0%C6%AE%C6%AE&prezime=&sektor=OP
REMOTE_PORT=2292
@boaglio
boaglio / spring-core5.md
Last active June 20, 2025 08:53
Anotações do Spring Core 5
@ifindev
ifindev / README.md
Created March 21, 2021 15:49
Tailwind Kanban

Tailwind Kanban

A simple exploration to build a kanban board using css grid in Tailwind CSS. So it's about 187 lines for just the mockup. This is totally normal because I just use plain HTML. For the next update, I will use Vue component to recreate it since it will clean up the code and more reusable.

Anyway, the UI is already responsive. But since I am using grids, I haven't figure out how to apply a horizontal scroll bar for the overflow case just like a normal kanban boards. Also, open up Tailwind Play to try out this project.

The design is inpired from this image. Kanban

<!-- component -->
<div class="min-h-screen flex items-center justify-center bg-gray-100 py-6">
<div class="flex w-full max-w-xs p-4 bg-gray-800">
<ul class="flex flex-col w-full">
<li class="my-px">
<a href="#"
class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 bg-gray-100">
<span class="flex items-center justify-center text-lg text-gray-500">
<svg fill="none"
stroke-linecap="round"
@superjojo140
superjojo140 / cors-fetch-express.md
Last active July 9, 2025 21:02
CORS fetch-request with credentials

This sounds easy but... it isn't!

Client side

Use this fetch options:

fetch('superUnsecureCorsUrl',{
   credentials: 'include'
})
@john-raymon
john-raymon / authentication-on-the-web-cheat-sheet.md
Last active July 8, 2025 19:48
Authentication on the Web (Sessions, Cookies, JWT, localStorage, and more)

Authentication

  • authentication: verifying identity (401 Unauthorized)
  • authorization: verifying permissions (403 Forbidden)

Username/password scheme

  • stateful/session-based/cookie-based (i.e. session using a cookie)
  • stateless/token-based (i.e. token using JWT / OAuth / other)
@fayazara
fayazara / gender.vue
Created April 24, 2020 04:33
Tailwind css grid with in action
<template>
<section class="grid grid-cols-2 gap-2 mb-6">
<div class="rounded-md shadow-md bg-gray-800 p-4 w-full">
<svg
class="w-16 h-16 mx-auto"
fill="currentColor"
stroke="currentColor"
viewBox="0 0 384 384"
>
<path
@BjornDCode
BjornDCode / gist:5cb836a6b23638d6d02f5cb6ed59a04a
Created February 3, 2020 11:58
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>