Skip to content

Instantly share code, notes, and snippets.

View effektsvk's full-sized avatar

Erik Slovák effektsvk

View GitHub Profile
@effektsvk
effektsvk / new-chatgpt-thread-boost.js
Last active February 6, 2024 15:05
Arc Boost for opening a new thread in ChatGPT
document.addEventListener("keydown", function (event) {
// Check if Cmd (on Mac) or Ctrl (on other platforms) is pressed along with 'N'
if ((event.metaKey || event.ctrlKey) && event.key === "n") {
event.preventDefault(); // Prevent the default action to ensure it doesn't interfere
// Define the XPath of the element to click
var xpath =
"/html/body/div[1]/div[1]/div[1]/div/div/div/div/nav/div[2]/div[1]/div/a";
// Use the XPath to find the element
@effektsvk
effektsvk / danceSystem.ts
Created July 31, 2022 20:33
Dance system issue
import * as utils from '@dcl/ecs-scene-utils'
import { triggerEmote, PredefinedEmote } from '@decentraland/RestrictedActions'
export class DanceSystem implements ISystem {
emotes: PredefinedEmote[] = []
timer: number = 2
length: number = 11
danceFunction: () => void = () => {
return this.dance()
}
echo "test"
@effektsvk
effektsvk / -1598448355723.log
Created August 26, 2020 13:30
VS Code - (#105288) Panel issue error log
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1679 ERR Cannot read property 'setViewVisible' of undefined: TypeError: Cannot read property 'setViewVisible' of undefined
at O.setPanelHidden (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6536:611)
at Object.hidePart (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6484:609)
at _.resetActiveComposite (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6351:609)
at _.hideComposite (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6350:529)
at e.hideComposite (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6489:467)
at e.onDidChangeActiveViews (file:///Applications/Visual Studio
04461fdee6ff3f05e055cf742d72289c6c4dffbe21bdabbf2677d4cfb4f9c6e1fb889b04a95e91f6d14cc3b0d7a2aac26b91f49fdb104fefad7cef295f5306546a;kefirook