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
// ==UserScript== | |
// @name Counter and Timer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://chat.openai.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
// @grant GM_addStyle | |
// ==/UserScript== |
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 * as crypto from 'node:crypto' | |
import pako from 'pako' | |
import basex from 'base-x' | |
const base16 = basex('0123456789abcdef') | |
const base62 = basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz') | |
let header = JSON.stringify({ alg: 'HS256', typ: 'JWT' }) |
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
{ | |
"breadcrumbs.enabled": false, | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, | |
"editor.cursorBlinking": "phase", | |
"editor.folding": false, | |
"editor.fontFamily": "Source Code Pro", | |
"editor.fontSize": 13, |
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 { resolveDynamicComponent, Transition } from 'vue' | |
import { RouterView } from 'vue-router' | |
export default { | |
setup () { | |
return () => { | |
const slots = view => ( | |
<Transition name='fade'> | |
{resolveDynamicComponent(view.Component)} |
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
/** | |
* | |
* Memoization utility | |
* | |
* @param cb - callback to determine when to return stale children | |
* @param key - name of the memo | |
* @param target - children you want to memoize | |
* | |
*/ |
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
// NOTES | |
// + Node's recursive file watching doesn't work on Linux | |
// + This watch function should work on all platforms | |
const fs = require('fs') | |
const path = require('path') | |
function debounce (callback) { | |
let last = 0 |
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
{ | |
"extends": "stylelint-config-standard", | |
"plugins": [ | |
"stylelint-order" | |
], | |
"rules": { | |
"at-rule-no-unknown": [ | |
true, | |
{ | |
"ignoreAtRules": ["extend"] |
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
ISC License | |
Copyright (c) <YEAR> <NAME> | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
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
// Google Tag Manager | |
window.dataLayer = window.dataLayer || [] | |
window.dataLayer.push({ | |
'gtm.start': new Date().getTime(), | |
'event': 'gtm.js' | |
}) |
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
MAKEFLAGS += --no-print-directory | |
.EXPORT_ALL_VARIABLES: | |
.PHONY: all start prepare css js production html | |
PATH := $(PWD)/node_modules/.bin:$(PATH) | |
SHELL := /bin/bash | |
all: NODE_ENV=true |
NewerOlder