Skip to content

Instantly share code, notes, and snippets.

View M0rais's full-sized avatar
🌴
This is a palm tree

M0rais

🌴
This is a palm tree
View GitHub Profile
@M0rais
M0rais / app.go
Last active March 6, 2025 19:20
small get time api using mux
package app
import (
"github.com/gorilla/mux"
"log"
"net/http"
)
func Start() {
@M0rais
M0rais / InventoryListener.java
Last active October 28, 2021 16:26
Verify Take and Put item from inventory
public class InventoryListener implements Listener {
@EventHandler
public void onInventoryInteract(final InventoryClickEvent event) {
if (event.getInventory() == null) return;
int slot = event.getRawSlot();
if (slot < event.getInventory().getSize()) {
//Verify inventory
Player player = (Player) event.getWhoClicked();
PlayerInventory playerInventory = player.getInventory();
@M0rais
M0rais / even.js
Created October 25, 2021 13:41
Verify if a number is even.
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(!
@M0rais
M0rais / Fibonacci.kt
Last active March 12, 2021 21:28
Kotlin program to print the FIBONACCI series up to the X term
fun main() {
printFibonacci(1000)
}
fun printFibonacci(times: Int) {
var num1 = 1.0
var num2 = 0.0
for (i in 1..times) {
num1 += num2