Skip to content

Instantly share code, notes, and snippets.

View alissonmarcs's full-sized avatar

Alisson alissonmarcs

View GitHub Profile
@harish-r
harish-r / Binary Search Tree.c
Last active September 2, 2024 10:21
Binary Search Tree Implementation in C
/* Binary Search Tree Implementation in C */
/* Harish R */
#include<stdio.h>
#include<stdlib.h>
struct TreeNode
{
int data;
struct TreeNode* left;
@JankDev
JankDev / Object.cpp
Created March 23, 2019 22:46
Polymorphism C++
#include <string>
#include <cstring>
#include <typeinfo>
#include <iostream>
#include <list>
#include <vector>
using namespace std;
class Object{
@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

@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>
<!-- 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"
@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)

Introduction to web application security

Section 1: Why is Application Security Important?

Application security is a unique and challenging undertaking. It is important to stress that it is absolutely critical in today's world. Applications that manage valuable data are increasingly exposed to potential attackers. 

Security Breaches and Vulnerabilities

The critical nature of application security in today's world is evinced daily in the news. Every day brings news of a newly-discovered vulnerability in popular software or operating systems, a new style of attack that results in the successful breaching of an organization's systems, the discovery of malware in government computer systems...a seemingly endless stream of "bad news." Indeed, such news will never end. The motivation for many attacks now is financial, and an attacker with a profit motive will not simply go away. We will briefly examine a few examples of disclosed vulnerabilities and breaches of systems that were made possible by inadequ

@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'
})