Skip to content

Instantly share code, notes, and snippets.

View JDaniloC's full-sized avatar

José Danilo Silva JDaniloC

View GitHub Profile
@JDaniloC
JDaniloC / keybindings.json
Created April 16, 2023 21:42
VSCode Key Bindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+x",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "alt+o",
"command": "workbench.files.action.focusFilesExplorer"
@JDaniloC
JDaniloC / settings.json
Created April 16, 2023 21:41
VSCode Settings Json
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"workbench.colorTheme": "Dracula",
"python.jediEnabled": false,
"explorer.confirmDelete": false,
"git.autofetch": true,
"workbench.iconTheme": "material-icon-theme",
"explorer.confirmDragAndDrop": false,
"emmet.syntaxProfiles": {
@JDaniloC
JDaniloC / terminal.md
Last active August 22, 2025 14:38
JDaniloC Customized WSL Windows Terminal

Customized WSL Windows Terminal

Configure Docker on Windows, enhance Linux visual, usability and install a package manager

On Windows

These configurations will be made on Windows to optimize and save space

Enhance Terminal

  1. Install Windows Terminal
  2. Install FiraCode and set on Windows Terminal
  3. Install Dracula theme to Windows Terminal
public class Lista {
private Node valor;
private Lista next;
public static void main(String[] args) {
Lista lista = new Lista();
lista.inserir(new Node(30));
lista.inserir(new Node(10));
lista.inserir(new Node(40));
lista.inserir(new Node(5));
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.*;
import javax.swing.*;
public class Keyboard extends JFrame
implements KeyListener,
ActionListener
{
JTextArea displayArea;
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
# . . . . . . . . . # # . . . . # # . . . . . . . . . #
# . # # # # . # # . # # . # # . # # . # # . # # # # . #
# . # # # # . # # . # # . # # . # # . # # . # # # # . #
# . . . . . . # # . . . . # # . . . . # # . . . . . . #
# . # # # # . # # # # # . # # . # # # # # . # # # # . #
# . # # # # . # # # # # . # # . # # # # # . # # # # . #
# . # # . . . . . . . . . # # . . . . . . . . . # # . #
# . # # . # # # # . # # # # # # # # . # # # # . # # . #
# . # # . # # # # . # # # # # # # # . # # # # . # # . #
import java.util.*;
public class Pacman {
private static int x = 0;
private static int y = 0;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String [][]mapa = new String[31][28];
for (int i = 0; i < 31; i++){
mapa[i] = in.nextLine().split(" ");
class No:
def __init__(self, key = None, value = None):
self.key = key
self.value = value
self.daddy = None
self.rt = None
self.lt = None
def __lt__(self, other): # Anteriormente eu comparava pelo value, mas agora pelo key por uma questão da arvore... Para pegar o valor só no get!
if (type(other)) != type(self): raise TypeError("'<' não suportado entre instancias de "+type(other).__name__+" e "+type(self).__name__)