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 code --> | |
<div></div> | |
/* css code */ | |
div { | |
position: relative; | |
height: 50vh;; | |
background-color: #64953D; | |
} |
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
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 }) { |
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
#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") |
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
; Mouse Cursor Position Switcher: This AutoIt script is designed to switch the | |
; mouse cursor position between two locations. It reads the previously stored | |
; coordinates from a text file, moves the mouse cursor to these coordinates, | |
; and then updates the file with the current coordinates. This allows the mouse | |
; cursor to effectively ‘switch’ between two positions. | |
#include <File.au3> | |
; Get the current coordinates | |
$currentCoords = MouseGetPos() |
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
{ | |
"endOfLine": "lf", | |
"printWidth": 80, | |
"singleQuote": true, | |
"tabWidth": 2, | |
"useTabs": false, | |
"plugins": [ | |
"prettier-plugin-tailwindcss", | |
"prettier-plugin-classnames", | |
"prettier-plugin-merge" |
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
Show hidden characters
{ | |
"compilerOptions": { | |
// Enable latest features | |
"lib": [ | |
"ESNext" | |
], | |
"target": "ESNext", | |
"module": "ESNext", | |
"moduleDetection": "force", |
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
name: Code Format | |
on: [push] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 |
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
// CREDIT: https://github.com/karimfromjordan | |
// https://kit.svelte.dev/docs/routing#server-fallback-method-handler | |
export async function fallback({ url, request }) { | |
if (request.method === 'GET' && url.pathame === '/api/x') { | |
// ... | |
} | |
if (request.method === 'GET' && url.pathame === '/api/y') { | |
// ... | |
} | |
if (request.method === 'GET' && url.pathame === '/api/z') { |
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
@font-face { | |
font-family: 'Alkes'; | |
src: url('./lib/styles/fonts/Alkes-Regular.woff') format('woff'), | |
url('./lib/styles/fonts/Alkes-Regular.woff') format('woff'); | |
} |
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
// .eslintrc.js | |
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaVersion: 2020, | |
sourceType: 'module', | |
}, | |
extends: [ | |
'airbnb', // Airbnb base configuration | |
'airbnb/hooks', // Airbnb hooks configuration (for React Hooks) |
OlderNewer