Skip to content

Instantly share code, notes, and snippets.

View NazCodeland's full-sized avatar

Nazar NazCodeland

View GitHub Profile
@NazCodeland
NazCodeland / nextMonitor.au3
Created April 15, 2024 14:19
Captures the current mouse position, reads a target position from a file, moves the mouse to the target position without delay.
#include <File.au3>
; Get the current coordinates
$currentCoords = MouseGetPos()
; The x and y coordinates should be saved on one line separated by a comma. Example: 200,400
$newCoordsString = FileRead("./coordinates.txt")
; Close the file after reading
FileClose("./coordinates.txt")
@NazCodeland
NazCodeland / tailwind plugin example
Last active April 21, 2024 22:46
simple tailwind plugin
import plugin from 'tailwindcss/plugin';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {}
},
plugins: [
plugin(function ({ addUtilities, addComponents, e, config, theme }) {
@NazCodeland
NazCodeland / sharp-corner.css
Last active February 4, 2023 00:34
making a sharp corner effect in CSS using the ::before pseudo element
<!-- html code -->
<div></div>
/* css code */
div {
position: relative;
height: 50vh;;
background-color: #64953D;
}