This file contains 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
const URL_REGEX = /^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n?]+)/gim; | |
const GOOG = ".google.com"; | |
const domainFromUrl = (url) => { | |
if (url.includes(GOOG)) { | |
const segments = url.split("/"); | |
const googIdx = segments.findIndex((item) => item.includes(GOOG)); | |
return segments[googIdx + 1]; | |
} |
This file contains 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
// 1. https://gaspumpgolf.github.io/ | |
// 2. Click play | |
// 3. Open console | |
// 4. Paste code and press enter | |
const down = new MouseEvent("mousedown", { bubbles: true, cancelable: true, view: window }); | |
const up = new MouseEvent("mouseup", { bubbles: true, cancelable: true, view: window }); | |
const btn = document.querySelector('#content > button'); | |
const target = document.querySelector('#content > p:nth-child(3) > mark > strong'); | |
const sale = document.querySelector('#content > p:nth-child(5) > strong'); | |
const observer = new MutationObserver((val)=>{ |
This file contains 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
const data = ['foo', 'bar', 'baz']; | |
const data2 = { | |
foo: { | |
bar: 123, | |
baz: [ | |
{ title: 'foo', value: 'bar' }, | |
{ title: 'a', value: 'a' }, | |
{ title: 'b', value: 'b' }, | |
], |
This file contains 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
console.log("Welcome to Denos5 🦕"); |
This file contains 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
console.log("Welcome to Deno 🦕"); |
This file contains 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
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches |
This file contains 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
function DeepCopy() { | |
return function(target: any, key: string) { | |
let value = target[key]; | |
return Object.defineProperty(target, key, { | |
configurable: true, | |
get: () => value, | |
set: val => { | |
value = JSON.parse(JSON.stringify(val)); | |
}, | |
}); |
This file contains 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
{ | |
"presets": ["es2015", "stage-0"] | |
} |
This file contains 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
// ThreeJsExportScript.mel | |
// Author: Sean Griffin | |
// Email: [email protected] | |
global proc int ThreeJsExportScript(string $parent, string $action, string $settings, string $callback) | |
{ | |
if ($action == "post") | |
{ | |
setParent $parent; | |
columnLayout -adj true; |
This file contains 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
__author__ = 'Sean Griffin' | |
__version__ = '1.0.0' | |
__email__ = '[email protected]' | |
import sys | |
import os.path | |
import json | |
import shutil |
NewerOlder