Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 14:42
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@yasirkula
yasirkula / GradientGraphic.cs
Last active April 26, 2024 14:40
Create 4-color gradient UI graphics in Unity
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER
using UnityEngine.U2D;
#endif
using Sprites = UnityEngine.Sprites;
#if UNITY_EDITOR
@0xjac
0xjac / private_fork.md
Last active April 26, 2024 14:38
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@pedroeuzebioo
pedroeuzebioo / settings.json
Created April 26, 2024 14:37
Configurações do meu VS Code
{
"editor.tabSize": 2, // Define o tamanho da tabulação como 2 espaços.
"editor.formatOnSave": true, // Formata o código automaticamente ao salvar.
"editor.hideCursorInOverviewRuler": true, // Esconde o cursor no resumo de visão geral.
"editor.minimap.enabled": false, // Desativa o minimapa de visualização de código.
"editor.scrollbar.vertical": "hidden", // Esconde a barra de rolagem vertical.
"editor.fontFamily": "JetBrains Mono", // Define a família da fonte do editor como JetBrains Mono.
"editor.semanticHighlighting.enabled": false, // Desativa o realce semântico do código.
"editor.codeActionsOnSave": { // Configura ações de código ao salvar.
"source.fixAll.eslint": "explicit", // Aplica correções do ESLint de forma explícita.