Skip to content

Instantly share code, notes, and snippets.

View osdeving's full-sized avatar

Willams S. de Sousa osdeving

  • Santa Bárbara D'Oeste - SP
View GitHub Profile
class Node {
constructor(key) {
this.key = key;
this.left = null;
this.right = null;
}
}
class BstTree {
constructor() {
package br.com.telefonica.willams.sec01;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
public class LargeFileWriterOptimized {
public static void main(String[] args) {
String filename = "file.txt";
body {
font-family: Arial, sans-serif;
}
header {
background-color: #883397; /* Cor roxa */
color: white;
padding: 10px 0;
text-align: center;
}
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>OpenGateway Password Portal - Result</title>
<link rel="stylesheet" type="text/css" href="/css/result.css?v1=11" />
<script type="text/javascript" src="/js/javascript.js"></script>
<link rel="icon" type="image/png" href="/img/favicon.ico">
</head>
<body>
body {
font-family: Arial, sans-serif;
}
header {
background-color: #800080; /* Cor roxa */
color: white;
padding: 10px 0;
text-align: center;
}
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>OpenGateway Password Portal</title>
<link rel="stylesheet" href="css/style.css"> <!-- Link para o seu arquivo CSS -->
<script src="js/script.js" defer></script> <!-- Link para o seu arquivo JavaScript -->
</head>
<body>
<header>
@osdeving
osdeving / index.ts
Created October 21, 2023 20:06
Authorization Code Flow com nonce, state e PKCE e o Keycloak como Authorization Server
import express from 'express';
import crypto from 'crypto';
import jwt from 'jsonwebtoken';
const app = express();
interface SessionData {
state?: string;
nonce?: string;
codeVerifier?: string;
//-----------------------------------------------------------------------------
// The input class constructor.
//-----------------------------------------------------------------------------
Input::Input( HWND window )
{
// Store the handle to the parent window.
m_window = window;
// Create a DirectInput interface.
//-----------------------------------------------------------------------------
// Provides basic collision detection in a 3D environment that includes both
// static geometry and dynamic objects.
//
// Note: This uses an adaptation of the algorithm from the Improved Collision
// Detection and Response article written by Kasper Fauerby.
//
// Programming a Multiplayer First Person Shooter in DirectX
// Copyright (c) 2004 Vaughan Young
//-----------------------------------------------------------------------------
@osdeving
osdeving / git flow.md
Created September 13, 2022 03:49
Git Flow

git flow

Iniciar uma feature

git checkout develop git checkout -b feature_branch

ou

git flow feature start feature_branch