A Pen by Slavko Vuletic on CodePen.
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
_append = (item, html) => item.insertAdjacentHTML('beforeend', html); | |
_after = (item, html) => item.insertAdjacentHTML('afterend', html); | |
_before = (item, html) => item.insertAdjacentHTML('beforebegin', html); | |
_hover = (item, cbIN, cbOUT) => { | |
item.addEventListener('mouseenter', cbIN); | |
item.addEventListener('mouseleave', cbOUT); | |
}; |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
choco install nodejs-lts | |
choco install wsl | |
choco install googlechrome | |
choco install firefox | |
choco install opera |
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
# This one is gonna download all files except 2. Git-2.33.0-64-bit.exe [REASON: Unknown. No time to research.] | |
# | |
# ToDo_List: | |
# โ]> 1. [_] - Fix Gitbash not getting downloaded. <[โโโโโโโโโโโโโโโโโโ | |
# โ โโโโ> [_] - DEPENDS ON #{1} - Git-2.33.0-64-bit.exe Install โ | |
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข | |
# โ ]> 2. [_] - Start Install of VSCODE.exe โ | |
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข | |
# โ ]> 3. [_] - Start Docker_Desktop_Installer.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
/* | |
onmessage = function (e) { | |
if (e.data === 'geoLocateAPI'){ | |
geoIp(); | |
} | |
}; | |
async function geoIp() { | |
const eu_countries = ["Albania","Andorra","Austria","Belarus","Belgium","Bulgaria","Croatia","Czech Republic","Denmark","England","Estonia","Faroe Islands","Finland","France","Germany","Gibraltar","Greece","Holy See (Vatican City State)","Hungary","Iceland","Ireland","Italy","Latvia","Liechtenstein","Lithuania","Luxembourg","North Macedonia","Malta","Moldova","Monaco","Montenegro","Netherlands","Northern Ireland","Norway","Poland","Portugal","Romania","Russian Federation","San Marino","Scotland","Serbia","Slovakia","Slovenia","Spain","Svalbard and Jan Mayen","Sweden","Switzerland","Ukraine","United Kingdom","Wales"]; | |
let myObject = await fetch("https://freegeoip.app/json/"); |
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
////////////////////////////////// | |
////////DEV TOOLS OPENED//////////// | |
////////////////////////////////// | |
// this one triggers debugger breakpoint for any event that happen to window object... | |
// Basically if you open the debugger that will do one of the events and that way we capture | |
// the event and just pass all to function that detects the thing and blocks exec with breakpoint. | |
//#javascript #quasar #vue | |
!function() { | |
function detectDevTool(allow) { | |
if(isNaN(+allow)) allow = 100; |
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
//-<[ Checking if we are the root ]>._____ | |
is_top_window = () => { | |
if (window.top != window.self) { | |
return false; | |
} else { | |
return true; | |
} | |
} | |
//-----------------------------[_V_]---- | |
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
<button onclick="goBack()">Go 2 pages back</button> | |
<button onclick="goToUrl('youtube.com')">Go 2 pages back</button> | |
<script> | |
goBack = () => { | |
window.history.go(-1); | |
}; | |
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
<script id="wwFetchFunc" type="javascript/worker"> | |
var reqNum = 1; | |
onmessage = function(e) { | |
if (e.data === 'wwFetchFunc'){ | |
webWorkerFetchFunc(); | |
} | |
}; | |
async function webWorkerFetchFunc() { |
NewerOlder