Hi guys 😁! Long time no new articles!
Today, I am going to show you how to compose React providers with TypeScript.
| defmodule App.Schema.SomeSubscriptionTest do | |
| use App.SubscriptionCase | |
| test "subscription: someSubscription" do | |
| subscription_query = """ | |
| subscription { | |
| someSubscription { | |
| someData | |
| } | |
| } |
| name: EZRep Build | |
| on: | |
| push: | |
| branches: master | |
| jobs: | |
| build: | |
| runs-on: windows-latest |
| import 'dotenv/config'; | |
| import { NestFactory } from '@nestjs/core'; | |
| import * as repl from 'repl'; | |
| import * as Logger from 'purdy'; | |
| const LOGGER_OPTIONS = { | |
| indent: 2, | |
| depth: 1, | |
| }; |
| import * as React from 'react'; | |
| import { document, window } from '../../../utils/browser'; | |
| // https://hackernoon.com/removing-that-ugly-focus-ring-and-keeping-it-too-6c8727fefcd2 | |
| export class KeyboardFocusHandler extends React.PureComponent { | |
| componentDidMount(): void { | |
| window!.addEventListener('keydown', this.handleFirstTab); | |
| } | |
| componentWillUnmount(): void { |
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf-8 | |
| # | |
| # USAGE: | |
| # Back up your tmux old config, run the script and redirect stdout to your conf | |
| # file. Example: | |
| # | |
| # $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
| # $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
| # |
The view ClusterRole doesn’t actually have permissions for the Cluster level objects like Nodes and Persistent Volume Claims. So we’ll have to create a new RBAC config.
First, we’ll create a new dashboard-viewonly ClusterRole:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dashboard-viewonly
| const puppeteer = require('puppeteer'); | |
| const chalk = require('chalk'); | |
| const { green, red, cyan, grey, bold } = chalk; | |
| // we assume storybook can visited at http://localhost:9001 | |
| const url = 'http://localhost:9001/iframe.html'; | |
| const runAxe = () => | |
| new Promise((resolve, reject) => |
| <container name="some.container" htmlTag="div" htmlClass="container"> | |
| <!-- Force container to render --> | |
| <block class="Magento\Framework\View\Element\Text"> | |
| <arguments> | |
| <argument name="text" xsi:type="string"><![CDATA[ ]]></argument> | |
| </arguments> | |
| </block> | |
| </container> |
| // ==UserScript== | |
| // @name mbank unlifting | |
| // @description Przywraca wygląd strony transakcyjnej mbanku z przed liftingu | |
| // @version 0.1 | |
| // @grant none | |
| // @author mardr | |
| // @include https://online.mbank.pl/* | |
| // ==/UserScript== | |
| document.documentElement.classList.remove('lifting'); |