Skip to content

Instantly share code, notes, and snippets.

@Choco02
Choco02 / shake_camera.gd
Created July 24, 2021 22:50 — forked from vctr-uniq/shake_camera.gd
Godot Engine - Shake 3D camera script
# usage example:
# curr_camera.shake(0.25, 40, 0.2)
extends Camera
var duration = 0.0
var period_in_ms = 0.0
var amplitude = 0.0
var timer = 0.0
var last_shook_timer = 0
@Choco02
Choco02 / http.md
Created May 21, 2021 21:40
HTTP para iniciantes

HTTP

HTTP (HyperText Transfer Protocol) é o protocolo de comunicação de websites/internet cliente-servidor.

O que seria um cliente?

Cliente ou client seria qualquer dispositivo que se conecte a internet e consiga acessar um servidor
pela porta 80(http) e 443(https)

Exemplos de cliente:

  • Navegador/browser do seu PC
@Choco02
Choco02 / cut_mp3.py
Created April 1, 2021 04:29 — forked from gchavez2/cut_mp3.py
Cut mp3 file with Python and pydub
# https://github.com/jiaaro/pydub
from pydub import AudioSegment
files_path = ''
file_name = ''
startMin = 9
startSec = 50
@Choco02
Choco02 / GUIA_DOCS_DJS.MD
Created January 24, 2021 23:08
Guia da discord.js docs

Guia de comando marry

module.exports.run = async (client, message, args) => {
    // Comando de marry
    const mention = message.mentions.members.first() || await message.guild.members.fetch(args[0]);
    if (!mention) return message.reply("Voce nao mencionou ninguem");
    
    const filter = (reaction, user) => reaction.emoji.name === 'emoji' && user.id === mention.id;
 const collector = message.createReactionCollector(filter, { time: 5 * 60 * 1000, max: 1 });
@Choco02
Choco02 / prop_diff_checker.js
Created December 26, 2020 10:54
Simple JS object diff checker
const obj1 = {
name: 'Alice',
from: 'Brazil',
state: 'RJ',
gender: 'Girl'
}
const obj2 = {
name: 'Hugo',
from: 'Brazil',
@Choco02
Choco02 / Ferramentas de terminal.md
Created December 2, 2020 21:27
Minha cheatsheet de ferramentas de terminal Linux pra nao esquecer
  • cd - mudar diretorio
  • ls - exibir arquivos/pastas do diretorios atual
  • pwd - mostrar nome do diretorio atual
  • mkdir - criar novo diretorio
  • rm -rf - deletar diretorio
  • cp - copiar diretorios
  • chmod - permissoes de arquivos
  • cat - exibir conteudo de arquivos
  • bat - exibir conteudo de arquivos com realce de sintaxe/sintax highlighting
  • tree - exibir diretorio em formato de arvore de pastas/arquivos
@Choco02
Choco02 / markdown-text-101.md
Created August 26, 2020 21:27 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@Choco02
Choco02 / bot_example.py
Created August 17, 2020 17:05 — forked from EvieePy/bot_example.py
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@Choco02
Choco02 / handler-botapi.py
Created July 4, 2020 00:09 — forked from VycktorStark/handler-botapi.py
This method will help you to manipulate the Telegram API easily
__author__ = "Vycktor Stark"
class Method():
"""
This method will help you to manipulate the Telegram API easily,
because basically it will communicate with the api by sending
the necessary arguments without the need to write a lot of code
or use a Telegram Frameworks / SDK / Wrapper.
"""
def __init__(self):