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
"tailwindCSS.experimental.classRegex": [ | |
"\\/\\*\\s*tw\\s*\\*\\/\\s*[`'\"](.*)[`'\"];?", // parse strings following a /* tw */ comment | |
["(?:\\b(?:const|let)\\s+)?[\\w$_]*(?:[Cc]lass[Nn]ame)[\\w\\d]*\\s*(?:=|\\+=)\\s*['\"]([^'\"]*)['\"]"], // parse strings such as 'testClassName', etc | |
["classList.(?:add|remove|toggle)\\(([^)]*)\\)", "(?:'|\"|`)([^\"'`]*)(?:'|\"|`)"] // parses DOM manip's, such as classList.add('') etc | |
], |
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
@REM Map Google Drive to G: | |
@subst G: "C:\Users\<< USER >>\Google Drive Streaming\My Drive" | |
@REM Show mapped drives | |
@subst | |
@REM Show for 10 seconds | |
@timeout /t 10 |
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
@echo off | |
@REM path to SetDPI.exe (get from https://github.com/imniko/SetDPI) | |
set SETDPI_PATH="C:\ProgramData\SetDpi" | |
@REM How many screens connected? | |
for /f "delims=" %%a in ('powershell -Command "$m = Get-PnpDevice -Class Monitor -Status OK | measure; $m.Count"') do set "MONITOR_COUNT=%%a" | |
echo Monitor count : %MONITOR_COUNT% |
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
taskkill /F /FI "IMAGENAME eq wsl.exe" | |
taskkill /F /FI "IMAGENAME eq wslhost.exe" | |
taskkill /F /FI "IMAGENAME eq wslservice.exe" |
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
/* eslint-disable no-console */ | |
import { cloneDeep } from 'lodash'; | |
type DevConsoleOptions = { | |
errorHandlerName?: string; | |
printStack?: boolean; | |
clone?: boolean; // clone the argument (to create a snapshot at time of execution) ? | |
devMode?: boolean; // boolean value to use instead of NODE_ENV | |
}; |
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
/** | |
* From: https://github.com/suhailsulu/react-carousel-3d ; edited for TS & TW | |
*/ | |
import { useState, useEffect, useRef } from 'react'; | |
import { useSwipeable } from 'react-swipeable'; | |
import './3dCarouselStyles.css'; | |
interface CarouselProps { | |
slides: |
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
# before running, execute Set-ExecutionPolicy RemoteSigned so that your PowerShell will allow it to run | |
$ErrorActionPreference="Stop" | |
Write-Host "Cleaning up packages and fstrim - " -NoNewLine | |
$SUDOSECUREPASSWORD = Read-Host "please enter your sudo password" -AsSecureString | |
Write-Host "" | |
# convert to usable String | |
$SUDOPASSWORD = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($SUDOSECUREPASSWORD)) |
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
// last element in array | |
var lastGesturePointInArray = action.GesturePoints.Length - 1; | |
// pixels travelled | |
var distanceTravelled = action.GesturePoints[lastGesturePointInArray].X - action.GesturePoints[0].X; | |
// Edit if need be: | |
var horizScrollDist = 1.5; | |
// turn to absolute num |