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
| # https://stackoverflow.com/a/1115909 | |
| function swap() | |
| { | |
| local TMPFILE=tmp.$$ | |
| mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE $2 | |
| } |
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 BrowserEnum = Object.freeze({ | |
| chrome: 'CHROME_BROWSER', | |
| firefox: 'FIREFOX_BROWSER', | |
| opera: 'OPERA_BROWSER', | |
| safari: 'SAFARI_BROWSER', | |
| ie: 'SHIT_BROWSER', | |
| edge: 'EDGE_BROWSER' | |
| }); | |
| var whichBrowser = function() { |
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
| const path = require('path'); | |
| const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin') | |
| const CleanWebpackPlugin = require('clean-webpack-plugin') | |
| const CopyWebpackPlugin = require('copy-webpack-plugin') | |
| module.exports = env => { | |
| isProduction = env.production || false |
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
| git checkout --orphan <branch-name> | |
| git reset | |
| rm -rf * | |
| # now you have no history and no files, like a true orphan ;) |
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
| /** | |
| * API providing 2 way binding of JavaScript objects to browser LocalStorage | |
| * | |
| * @type {Object} | |
| */ | |
| /** | |
| * Constructor for creating an object of LocalStorageObject type | |
| * | |
| * @param {object} target object or array defining object properties |
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 React from 'react' | |
| import firebase from 'react-native-firebase' | |
| const withRemoteConfig = (configValues = []) => Component => ( | |
| class EnhancedComponent extends React.Component { | |
| state = { | |
| config: {} | |
| } | |
| componentDidMount = async () => { |
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 { useEffect } from 'react' | |
| const noop = () => {} | |
| export default ( | |
| url, | |
| options = {}, | |
| complete = noop, | |
| error = noop, | |
| final = noop |
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
| const { | |
| dependencies: dependenciesNew, | |
| devDependencies: devDependenciesNew | |
| } = require('../cazmatrans.hr-native-0.59/package.json') | |
| const { dependencies, devDependencies } = require('./package.json') | |
| // const newDeps = Object.keys(devDependenciesNew) | |
| // console.log(newDeps.filter(dep => !devDependencies[dep]).join(' ')) | |
| const newDeps = Object.keys(dependenciesNew) |
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 { Logger } from 'core/helpers' | |
| class DeepLinkService { | |
| init(navigation) { | |
| this.navigation = navigation | |
| } | |
| handleUrl = (event, navigation) => { | |
| try { | |
| if (!event?.url) { |