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
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const reactNativePreset = require('jest-expo/jest-preset'); | |
module.exports = { | |
...reactNativePreset, | |
// This line is fix warning for `act` caused by jest using mock Promise in react-native setup files | |
// The backstory is we need to use `waitFor` each time we do `fireEvent.changeText` because Formik is doing async validation on blur events | |
// Here we need to override global.Promise in react-native's jest preset to use actual Promise | |
// https://stackoverflow.com/a/66858310/9079265 | |
setupFiles: [require.resolve('../save-promise.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
import { NavigatorScreenParams } from '@react-navigation/native'; | |
import { Screen } from './screens'; | |
export declare type PathConfigWrapped<ParamList extends unknown> = { | |
path?: string; | |
exact?: boolean; | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
parse?: Record<string, (value: string) => any>; | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
![pug.gif](https://gist.github.com/listiani13/0265f3aff137459d3e43839fb29095b2/raw/7beded1eb998f0f84e1b5763623f18369a41032b/pug.gif)
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
let a = [0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0] |
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
let a = ["0", "1", "0", "1", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "1", "0", "0", "0", "0", "1", "0", "1", "0", "0", "1", "0", "0", "0", "1", "0", "1", "0", "0", "0", "1", "0", "1", "0", "1", "0", "1", "0", "0", "0", "1", "0", "0", "0", "0", "0", "1", "0", "1", "0", "1", "0", "0", "1", "0", "1", "0", "1", "0", "0", "1", "0", "0", "0", "0", "1", "0", "0", "1", "0", "0", "0", "1", "0", "0", "1", "0", "1", "0"] |
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
ffmpeg -i 'fix chart.mov' -vf scale=600:-1 -r 10 output/ffout%3d.png | |
convert -delay 8 -loop 0 output/ffout*.png output/animation.gif | |
ffmpeg -i <<path to mov file>> -vf scale=600:-1 -r 10 <<path to output folder>> | |
convert -delay 8 -loop 0 <<path to input image file>> <<path to output gif>> |
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
fetch('https://api.github.com/orgs/kodefox/repos') | |
.then((resp)=>{ | |
resp.json().then((data) => { | |
data.forEach((item)=>{ | |
fetchRepo(item.name); | |
}); | |
}) | |
}); | |
let fetchRepo = (name)=>{ |