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 migrateObject(obj) { | |
const clipPath = obj?.clipPath; | |
if (clipPath && clipPath.type === 'group' && clipPath.eraser === true) { | |
clipPath.type = 'eraser'; | |
delete clipPath.eraser; | |
const rect = clipPath.objects.shift(); | |
obj.clipPath = rect.clipPath; | |
obj.eraser = clipPath; | |
} |
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
/** | |
* Add this file in your app at `src/setupProxy.js` | |
* It will proxy outbound requests from your app (while in dev mode) to your firebase functions emulator. | |
* | |
* Make sure you've changed the consts! | |
* After that simply start the react dev server and the firebase functions emulator. | |
* | |
* Patches the behavior of `firebase.functions().useEmulator` for `onRequest` http functions. | |
* https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually | |
* |
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
#include <stdio.h>#include<stdlib.h>#include<math.h>#define NUM 9#define DIM NUM | |
typedef struct | |
{ | |
int comb[NUM], val; | |
} comb; | |
typedef struct | |
{ | |
int CO[2][2], val, type, len, indx; | |
comb *solution; | |
comb temp; |
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
'use strict'; | |
import React, { PropsWithChildren, useMemo } from 'react'; | |
import { I18nManager, StyleSheet, View } from 'react-native'; | |
/** | |
* You might want to change this value | |
* */ | |
const verticalContainerHackSize = 50; | |
export enum Direction { |
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
module.exports = function (api) { | |
api.cache(true) | |
return { | |
//decoratorsBeforeExport | |
"presets": ["module:metro-react-native-babel-preset"], | |
"plugins": [ | |
["module-resolver", { | |
"root": ["./src"], | |
"extensions": [".js", ".ts", ".tsx", ".ios.js", ".android.js"] | |
}], |
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
/* | |
//js file handling FirebaseUI | |
//TO-DO: FirebaseUI init code....... | |
documentation: https://github.com/firebase/firebaseui-web#available-callbacks | |
Flow of Data: | |
-- Pass params from signInSuccess callback (auth.js) | |
-- to cloud function getUserClaims (cloudFunctions.js) |