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 / 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 / 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):
@Choco02
Choco02 / markdown-text-101.md
Created January 6, 2020 15:18 — forked from almeidx/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 / SpriteTrail.gd
Created January 6, 2020 14:55 — forked from luizcarlos1405/SpriteTrail.gd
Creates a trail of copies of the parent node's texture. The parent can be an Sprite or a Animated Sprite
extends Node2D
class_name SpriteTrail
"""
Add a trail of copies of the parent's texture.
Works as child of Sprite or AnimatedSprite.
The `_trail_copies` variable has information about the copies as dictionaries
in the following format:
@Choco02
Choco02 / get.js
Created August 18, 2019 00:23 — forked from rafaelstz/get.js
AJAX GET and POST with pure Javascript
// Exemplo de requisição GET
var ajax = new XMLHttpRequest();
// Seta tipo de requisição e URL com os parâmetros
ajax.open("GET", "minha-url-api.com/?name=Henry&lastname=Ford", true);
// Envia a requisição
ajax.send();
// Cria um evento para receber o retorno.
@Choco02
Choco02 / markdown-text-discord.md
Created January 26, 2019 02:46 — forked from cogumm/markdown-text-discord.md
Guia de Markdown para o nosso amado Discord.

Markdown Text 101

Quer deixar o seu seu bate-papo de texto do Discord com um sabor diferente? Você está com sorte, pois este é um Guia de Markdown para o nosso amado Discord!. O Discord usa o Markdown, um sistema simples de formatação de texto simples que ajudará você a destacar suas frases. Veja como fazer isso! Apenas adicione alguns caráteres antes e depois de texto desejado para mudar o estilo! Vou te mostrar alguns exemplos ...

Menu: