Skip to content

Instantly share code, notes, and snippets.

View TheDutchCoder's full-sized avatar
👋
Say hi!

Reinier Kaper TheDutchCoder

👋
Say hi!
View GitHub Profile
/**
* This plugin runs on the server and checks for the user's access token and
* refresh token cookies.
*
* If one of them is missing, the user will be logged out and cookies will be
* removed as a precaution.
*
* If both tokens are still valid, we get the user's account and log them in.
*
* If the access token has expired, we use the refresh token to get a new access
javascript:(function(){
let a = document.querySelector('.styles__StyledLink-sc-l6elh8-0.ekTmzq.Blockreact__Block-sc-1xf18x6-0.Buttonreact__StyledButton-sc-glfma3-0.fuGyEk.fzwDgL.OrderManager--second-button');
a.click(); setTimeout(function() { let b = document.querySelector('input[name=price]'); b.value = 0.15;
let c = document.querySelector('#duration');
c.click();
setTimeout(function() {
let d = document.querySelectorAll('.UnstyledButtonreact__UnstyledButton-sc-ty1bh0-0.Monthreact__Day-sc-rehiga-1.btgkrL');
let i = -1;
d.forEach((node, index) => node.ariaSelected ? i = index : i = -1);
d[i + 2].click();
DEBUG: Setting current branch to develop(branch="renovate/chalk-a11y")
DEBUG: latest commit(branch="renovate/chalk-a11y")
{
"branchName": "develop",
"latestCommitDate": "2021-12-03T16:00:58-05:00"
}
DEBUG: getBranchPr(renovate/chalk-a11y)(branch="renovate/chalk-a11y")
DEBUG: findPr(renovate/chalk-a11y, undefined, open)(branch="renovate/chalk-a11y")
DEBUG: findPr(renovate/chalk-a11y, undefined, closed)(branch="renovate/chalk-a11y")
DEBUG: Found PR #2426(branch="renovate/chalk-a11y")
<template>
<div
class="relative rounded border bg-white w-full"
:class="!isValid && isDirty ? 'border-negative-700' : ''"
>
<label
:for="id"
class="absolute top-0 left-0 text-xs px-1 ml-2 bg-white leading-none transform-gpu -translate-y-1/2"
:class="hasFocus ? 'text-black-700' : 'text-secondary-700'"
>{{ label }}<span
RED="31"
GREEN="32"
CYAN="36"
WHITE="97"
BOLDGREEN="\e[1;${GREEN}m"
BOLDCYAN="\e[1;${CYAN}m"
BOLDWHITE="\e[1;${WHITE}m"
ENDCOLOR="\e[0m"
function select_option {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"module-templates.engine": "handlebars",
"module-templates.templates": [
{
"displayName": "OMS component",
"defaultPath": "src/components",
"folder": "{{kebab name}}",
"questions": {
"name": "Component name"
},
{
"module-templates.engine": "handlebars",
"module-templates.templates": [
{
"displayName": "Chalk UI component",
"defaultPath": "src/components",
"folder": "{{kebab name}}",
"questions": {
"name": "Component name"
},
@TheDutchCoder
TheDutchCoder / machine.js
Last active December 5, 2020 01:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@TheDutchCoder
TheDutchCoder / vue.json
Last active October 7, 2020 19:59
VSCode snippets for Vue components
{
"component": {
"prefix": "component",
"body": [
"<template>",
"\t<div>${9}</div>",
"<\/template>",
"",
"<script>",
"export default {",