This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==MiruExtension== | |
// @name MangaDex | |
// @version v0.0.4 | |
// @author bethro | |
// @lang all | |
// @license MIT | |
// @icon https://mangadex.org/img/avatar.png | |
// @package mangadex.org | |
// @type manga | |
// @webSite https://api.mangadex.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Tic-Tac-Toe Game | |
This file contains the implementation of a simple Tic-Tac-Toe game. | |
The game is played between a human player (Player X) and a bot (Player O). | |
The main functions include: | |
- displayBoard: To display the current state of the game board. | |
- checkWin: To check if a player has won the game. | |
- checkDraw: To check if the game is a draw. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [1,2,3, 4,5,6,7,8] | |
let fruits = ["Apple", "Orange", "Pear"]; | |
// 0 1 2 | |
// loop | |
let doubled_result = arr.map(function(item){ | |
return item * 2; | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local iup = require("iup") | |
-- Helper functions | |
local function updateDisplay(value) | |
local display = iup.GetHandle("display") | |
local currentValue = display.value | |
if currentValue == "0" or currentValue == "Error" then | |
display.value = value | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--primary: #6272a4; /* Dracula Purple */ | |
--on-primary: #f8f8f2; /* Light text */ | |
--primary-container: #44475a; /* Dark background */ | |
--on-primary-container: #f8f8f2; /* Light text */ | |
--secondary: #ff79c6; /* Pink */ | |
--on-secondary: #f8f8f2; /* Light text */ | |
--secondary-container: #bd93f9; /* Purple */ | |
--on-secondary-container: #f8f8f2; /* Light text */ | |
--tertiary: #f1fa8c; /* Yellow */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--primary: #8bd5ca; /* teal */ | |
--on-primary: #000000; | |
--primary-container: #a6da95; /* green */ | |
--on-primary-container: #8b4513; | |
--secondary: #f5bde6; /* pink */ | |
--on-secondary: #000000; | |
--secondary-container: #f0c6c6; /* flamingo */ | |
--on-secondary-container: #a0522d; | |
--tertiary: #eed49f; /* yellow */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub Useful Forks | |
// @namespace Violentmonkey Scripts | |
// @version 1.0 | |
// @author bethro | |
// @icon https://useful-forks.github.io/assets/useful-forks-logo.png | |
// @description Adds a button to GitHub repositories to see useful forks of the repo. | |
// @homepageURL https://github.com/bethropolis/useful-forks | |
// @supportURL https://github.com/bethropolis/useful-forks/issues | |
// @match https://github.com/*/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"name": "Item 1", | |
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs" | |
}, | |
{ | |
"id": 2, | |
"name": "Item 2", | |
"previewUrl": "https://fastly.picsum.photos/id/123/200/300.jpg?hmac=uMA4z26tAYQnhW8_XlH0SoULB5z9s8tan-WCDkzbdMs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML snippet | |
const htmlSnippet = ` | |
<div class="infozingle"> | |
<p> | |
<span> | |
<b>Judul</b>: Ishura | |
</span> | |
</p> | |
</div> | |
`; |
NewerOlder