also see Drawing ASCII Boxes
┐ └ ┴ ┬ ├ ─ ┼ ┘ ┌ │ ┤
╣ ║ ╗ ╝ ╚ ╔ ╩ ╦ ╠ ═ ╬
░ ▒ ▓ █ ▄ ▀ ■| import threading | |
| # Based on tornado.ioloop.IOLoop.instance() approach. | |
| # See https://github.com/facebook/tornado | |
| class SingletonMixin(object): | |
| __singleton_lock = threading.Lock() | |
| __singleton_instance = None | |
| @classmethod |
| // Mini example of broading casting events with WebSockets in NestJS | |
| import { Injectable } from '@nestjs/common'; | |
| import { | |
| MessageBody, | |
| SubscribeMessage, | |
| WebSocketGateway, | |
| WebSocketServer, | |
| } from '@nestjs/websockets'; | |
| import { WebSocket, Server } from 'ws'; |
also see Drawing ASCII Boxes
┐ └ ┴ ┬ ├ ─ ┼ ┘ ┌ │ ┤
╣ ║ ╗ ╝ ╚ ╔ ╩ ╦ ╠ ═ ╬
░ ▒ ▓ █ ▄ ▀ ■| function logAttrs({ displayName, obj }) { | |
| console.group(displayName); | |
| for (const [key, value] of Object.entries(obj)) { | |
| console.log(`${key}: ${value}`); | |
| } | |
| console.groupEnd(); | |
| } | |
| (function() { | |
This is definitely a good place to start:
As for setting up multiple SSH identities, assume you have accounts with the following emails:
foxmascot@gmail.comoctocat@gmail.com| { | |
| "editor.semanticTokenColorCustomizations": { | |
| "enabled": false, | |
| // "rules": { | |
| // "variable.defaultLibrary": "#E5C07B" | |
| // }, | |
| "[One Dark Pro]": { | |
| // Apply to this theme only | |
| "enabled": true, | |
| "rules": { |
| license: gpl-3.0 |
| import React from 'react'; | |
| import { cleanup, render } from '@testing-library/react'; | |
| import { rest } from 'msw'; | |
| import { setupServer } from 'msw/node'; | |
| import { NewClasslikeComponent, Provider } from 'example/components'; | |
| describe('NewClasslikeComponent component', () => { | |
| const userHandle = "1959b2d6-e209-4a5e-a2ca-d4a0fb5cac68"; |
| import styled from 'styled-components'; | |
| import { JustShowTheStuff, ThingsToDoArea } from 'example/components'; | |
| const StretchyLikeSuspenders = styled.div` | |
| align-items: flex-start; | |
| display: flex; | |
| flex-flow: row wrap; | |
| justify-content: space-between; | |
| `; |
| import React, { useContext } from 'react'; | |
| import { JustShowTheStuff, ThingsToDoArea } from 'example/components'; | |
| import { collapseStuff, loadStuff } from 'example/store/stuff/actions'; | |
| import { collapseToDoItems, getThingsToDo } from 'example/store/thingsToDo/actions'; | |
| import { StateContext, DispatchContext } from 'example/context'; | |
| import styles from './style.css'; | |
| const NewClasslikeComponent = () => { | |
| const { stuff, thingsToDo, user } = useContext(StateContext); |