Online Demo: https://jsfiddle.net/72subv99/1/.
Special Thanks: .
| -- https://www.hammerspoon.org/ | |
| focusWorkaroundWatchers = {} | |
| local lastActivatedApp = nil | |
| local restoreActivationTimer = nil | |
| local lastFocusedWindowBySpace = {} | |
| focusWorkaroundWatchers.application = hs.application.watcher | |
| .new(function(name, event, app) | |
| if event == hs.application.watcher.activated then |
| import { useState } from "react"; | |
| export const useStateWithDeps = <T>( | |
| initialState: T | (() => T), | |
| deps: unknown[], | |
| ) => { | |
| const [state, setState] = useState(initialState); | |
| const [currentDeps, setCurrentDeps] = useState(deps); | |
| if (!shallowEqual(deps, currentDeps)) { |
| { | |
| "version": 1, | |
| "uid": 6781217894371684000, | |
| "layout": [ | |
| [ | |
| [ | |
| "KC_ESCAPE", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
| { | |
| "name": "wilba.tech WT60-H1", | |
| "vendorProductId": 1703018532, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_ESC", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
| ;/*++ | |
| ; | |
| ;Copyright (c) Cirrus Logic, Inc. All rights reserved. | |
| ; | |
| ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY | |
| ; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | |
| ; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR | |
| ; PURPOSE. | |
| ; | |
| ;Module Name: |
| # ω bbs Individual Contributor License Agreement | |
| Thank you for your interest in contributing to ω bbs ("We" or "Us"). | |
| This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us, following the instructions at https://cla-assistant.io/. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us. | |
| ## 1. Definitions | |
| **"You"** means the individual who Submits a Contribution to Us. |
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import { AppContainer } from "react-hot-loader"; | |
| import App from "./App"; | |
| const render = (hydrate = false) => { | |
| const container = document.querySelector("#app"); | |
| const element = ( | |
| <AppContainer> |
| import React from "react"; | |
| import PropTypes from "prop-types"; | |
| import { createPortal } from "react-dom"; | |
| class Portal extends React.Component { | |
| static propTypes = { | |
| children: PropTypes.node, | |
| }; | |
| state = { mounted: false }; |
Online Demo: https://jsfiddle.net/72subv99/1/.
Special Thanks: .