Skip to content

Instantly share code, notes, and snippets.

View leoneloliver's full-sized avatar
🌍
Working from home

Leonel Oliveira leoneloliver

🌍
Working from home
View GitHub Profile
@leoneloliver
leoneloliver / index.html
Created August 30, 2024 18:54
tv app working
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Streaming UI</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-black text-white">
<header class="flex items-center justify-between p-4">
@leoneloliver
leoneloliver / setfont.js
Created April 26, 2022 13:29
Set Font: A font playground =)
var f_globalUrl = window.location.href;
var f_mainUrl = new URL(f_globalUrl);
var hasSetfont = f_mainUrl.searchParams.get("setfont");
if(hasSetfont){
console.log('setFont is running!')
const addStyle = () => {
// ==UserScript==
// @name GNOME budget widget
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://genome.klick.com/tasks/project/home/*
// @icon https://www.google.com/s2/favicons?domain=klick.com
// @grant none
// ==/UserScript==
@leoneloliver
leoneloliver / Python tricks.py
Created October 24, 2016 17:01
Python tricks created by leoneloliver - https://repl.it/EEce/0
#
bag = [1, 2, 3, 4, 5]
for i in range(len(bag)):
bag[i]= bag[i]* 2
print bag
bag = [elem * 2 for elem in bag]
print "new:", bag
@leoneloliver
leoneloliver / Python Calculator.py
Created October 24, 2016 00:27
Python Calculator created by leoneloliver - https://repl.it/EEET/0
# calculator program
def menu():
print "Welcome to calculator.py"
print "your options are:"
print " "
print "1) +"
print "2) -"
print "3) x"
print "4) /"
print "5) Quit"