-
Use the
--recursiveflag:git clone https://github.com/aikiframework/json.git --recursiveHowever if you cannot, as Github desktop app on clone does not use this flag, then do this after clone:
This file contains hidden or 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 * as FileSystem from 'expo-file-system'; | |
| import { Platform } from 'react-native'; | |
| import { IStorageEngine } from 'lib/persistoid'; | |
| import { addDebugBreadcrumb, addErrorBreadcrumb } from 'lib/sentry'; | |
| function isAndroidMissingFileOrDirectoryError(error: unknown) { | |
| if ( | |
| Platform.OS === 'android' && | |
| hasMessage(error) && |
This file contains hidden or 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
| Cu.import('resource://gre/modules/ctypes.jsm') | |
| var wintypesInit = function() { | |
| // BASIC TYPES (ones that arent equal to something predefined by me) | |
| this.BOOL = ctypes.bool; | |
| this.DWORD = ctypes.uint32_t; | |
| this.HANDLE = ctypes.voidptr_t; | |
| this.INT = ctypes.int; | |
| this.PVOID = ctypes.voidptr_t; |
This file contains hidden or 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 splitCubicBezier(options) { | |
| var z = options.z, | |
| cz = z-1, | |
| z2 = z*z, | |
| cz2 = cz*cz, | |
| z3 = z2*z, | |
| cz3 = cz2*cz, | |
| x = options.x, | |
| y = options.y; |
This file contains hidden or 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
| Split bezier | |
| Shows the possibility to split a bezier curve, two separate techniques are used: | |
| Bernstein's Polynomials | |
| Casteljau's Algorithm | |
| Bernstein's Polynomials | |
| The Bernstein Polynomial implemented in javascript reads as: | |
| getBezier = function getBez(percent,p1,cp1,cp2,p2) { |
This file contains hidden or 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
| var WIN32_ERROR_STR = { | |
| HRESULT: { | |
| 'STG_S_CONVERTED': 0x00030200, | |
| 'STG_S_BLOCK': 0x00030201, | |
| 'STG_S_RETRYNOW': 0x00030202, | |
| 'STG_S_MONITORING': 0x00030203, | |
| 'STG_S_MULTIPLEOPENS': 0x00030204, | |
| 'STG_S_CONSOLIDATIONFAILED': 0x00030205, | |
| 'STG_S_CANNOTCONSOLIDATE': 0x00030206, | |
| 'OLE_S_USEREG': 0x00040000, |
This file contains hidden or 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 useRenderCounter(label) { | |
| const ref = React.useRef(); | |
| React.useEffect(() => { | |
| ref.current.textContent = [ | |
| parseInt(ref.current.textContent || "0", 10) + 1, | |
| label | |
| ] | |
| .filter(Boolean) | |
| .join(" - "); | |
| }); |
This file contains hidden or 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
| { | |
| "editor.inlineSuggest.enabled": true, | |
| "github.copilot.enable": { | |
| "*": false, | |
| "plaintext": false, | |
| "markdown": false, | |
| "scminput": false, | |
| "ts": true, | |
| "js": true, | |
| "jsx": true, |
NewerOlder