Skip to content

Instantly share code, notes, and snippets.

View WesleiRamos's full-sized avatar
😁

Weslei Ramos WesleiRamos

😁
View GitHub Profile
@WesleiRamos
WesleiRamos / move-controls.js
Created February 22, 2025 19:15
Altera a disposição dos controles do vídeo
// ==UserScript==
// @name Move controles pra baixo do vídeo
// @namespace http://tampermonkey.net/
// @version 2025-02-22
// @description Altera a disposição dos controles do vídeo
// @author Weslei Ramos
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@WesleiRamos
WesleiRamos / config.json
Created December 29, 2024 03:13 — forked from ijwfly/config.json
Qwen2.5-Coder 7B continue.dev configuration example
{
"models": [
{
"title": "Qwen2.5-Coder-7B",
"provider": "ollama",
"model": "Qwen2.5-Coder-7B-Instruct-Q6_K:latest",
"apiBase": "https://your_ollama_server"
}
],
"tabAutocompleteModel": {
@WesleiRamos
WesleiRamos / fix-udemy-controls.js
Created November 29, 2024 17:22
Hide Playback Controls when mouse is not moving on Udemy
// ==UserScript==
// @name Udemy Hide Video Playback Controls
// @namespace https://github.com/WesleiRamos
// @version 2024-11-29
// @description Hide Playback Controls when mouse is not moving on Udemy, based on Rahul's script (https://greasyfork.org/pt-BR/scripts/519179-udemy-hide-video-playback-controls)
// @author Weslei Ramos
// @match https://www.udemy.com/course/*
// @icon https://www.udemy.com/staticx/udemy/images/v7/apple-touch-icon.png
// @license MIT
// @grant none
@WesleiRamos
WesleiRamos / hashtable.js
Created April 24, 2022 18:23
hash table
class HashEntry {
constructor(k, v) {
this.key = k
this.value = v
}
setValue(v) {
this.value = v
}
}
@WesleiRamos
WesleiRamos / JSONView Sublime Text Monokai.css
Created May 16, 2019 22:10
JSON View monokai theme like sublime text for Chrome Extension
body {
color: rgb(248, 248, 242);
background: rgb(44, 44, 39);
white-space: pre;
font-family: monospace;
}
a, a:visited {
color: rgb(143, 216, 239);
}
@WesleiRamos
WesleiRamos / CameraFollowPlayer.hx
Last active August 23, 2018 20:55
Camera follow player using openfl
package utils;
import motion.Actuate;
import motion.easing.Quad;
import openfl.geom.Rectangle;
import openfl.display.Sprite;
import openfl.Lib;
class CameraFollow extends Sprite
{
@WesleiRamos
WesleiRamos / slide.html
Last active August 5, 2018 18:01
Simples slide
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>slide exemplo</title>
<style>
/* reseta o padding e margin, sempre faço isso **/
* { padding: 0; margin: 0; }
/* apenas para deixar os elementos centralizados **/
@WesleiRamos
WesleiRamos / player.gd
Last active April 15, 2018 17:26
Godot KinematicBody2D example
extends KinematicBody2D
## Gravidade vars
var VELOCIDADE = Vector2()
const FORCA_GRAVIDADE = Vector2(0, 1000)
## Andar vars
const VELOCIDADE_ANDAR = 120
## Pular vars
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include *://mail.google.com/*
// @grant none
// ==/UserScript==
@WesleiRamos
WesleiRamos / schedule.go
Last active June 10, 2022 21:51
A simple match schedule algorithm
package main
import "fmt"
func main() {
times := []string{"Corinthians", "Londrina", "Operário", "Leicester"}
calendario := [][][]string{}
lenTimes := len(times)
lenTimes2 := lenTimes / 2