This is a guide to configure React Native to be built for native and web platforms with Typescript, Vite.js and Storybook support for modelling components.
This file contains 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
function useCachedAbortiveQuery<T>( | |
query: DocumentNode, | |
variables: Record<string, unknown>, | |
deps: Array<any> | |
) { | |
const apolloClient = useApolloClient(); | |
const [data, setData] = useState<T>(); | |
const [error, setError] = useState<Error | null>(null); | |
const [loading, setLoading] = useState<boolean>(true); |
Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>
:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^ ^---------------^ ^------^
| | | | |
| | | | +--> (Optional) Issue reference: if the commit closes or fixes an issue
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
This file contains 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
const handler = { | |
get(target, key) { | |
if (key == 'isProxy') | |
return true; | |
const prop = target[key]; | |
if (typeof prop == 'undefined') | |
return; | |
if (!prop.isProxy && typeof prop === 'object') | |
target[key] = new Proxy(prop, handler); |
This file contains 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 { useReducer, useEffect } from 'react'; | |
import { useSwipeable, SwipeableHandlers, EventData } from 'react-swipeable'; | |
function previous(length: number, current: number) { | |
return (current - 1 + length) % length; | |
} | |
function next(length: number, current: number) { | |
return (current + 1) % length; | |
} |
There is not a MacOS-native executable of Enterprise Architect on Mac. In order to run it, it is possible to use Wine, a software to run windows applications on Linux and Mac. Sparx has a webinar and a documentation page explaining how to install EA into Linux using Wine. However, these instructions do not provide a step-by-step guide for MacOS
The following are instructions to install EA on MacOs using Homebrew.
- install homebrew
This file contains 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
// https://codepen.io/cmykw/pen/gemxJm | |
// layout | |
<nav/> | |
// style | |
<style> | |
body { min-height: 200vh; } | |
nav { |
NewerOlder