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
export const reportException = async (exception, reportToAppCenter = true) => { | |
const {appVersion, label} = await codePush.getUpdateMetadata() || {}; | |
try { | |
if (reportToAppCenter) { | |
Analytics.trackEvent(`Exception Occured ===> ${exception}`); | |
} | |
} catch { |
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 [routeLunchawalaMap, setRouteLunchwalaMap] = useState({}); | |
useEffect(() => { | |
const nRouteLunchawalaMap = {}; | |
db.collection('/routeAllocation').forEach((doc) => { | |
nRouteLunchawalaMap[doc.id] = [doc.lunchwalaId] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="preconnect" href="https://fonts.gstatic.com" /> | |
<link | |
href="https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap" | |
rel="stylesheet" | |
/> | |
<link | |
href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" |
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
<div id="curator-feed-sandbox-layout"></div> | |
<script type="text/javascript"> | |
/* curator-feed-sandbox-layout */ | |
(function() { | |
var i, e, d = document, | |
s = "script"; | |
i = d.createElement("script"); | |
i.async = 1; | |
i.src = "https://cdn.curator.io/published/d85b878e-0ede-4436-8198-ed1eba1d7482.js"; | |
e = d.getElementsByTagName(s)[0]; |
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
<div id="curator-feed-sandbox-layout"></div> | |
<script type="text/javascript"> | |
/* curator-feed-sandbox-layout */ | |
(function() { | |
var i, e, d = document, | |
s = "script"; | |
i = d.createElement("script"); | |
i.async = 1; | |
i.src = "https://cdn.curator.io/published/d85b878e-0ede-4436-8198-ed1eba1d7482.js"; | |
e = d.getElementsByTagName(s)[0]; |
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
/* global __dirname */ | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const merge = require('webpack-merge'); | |
const CompressionPlugin = require('compression-webpack-plugin'); | |
const GitRevisionPlugin = require('git-revision-webpack-plugin'); | |
const gitRevisionPlugin = new GitRevisionPlugin({branchCommand: 'rev-parse --symbolic-full-name HEAD'}); |
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
crontab -e */15 * * * * say `curl -s http://catfacts-api.appspot.com/api/facts |python -mjson.tool|grep facts -a1|tail -n1` |
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
#DUMP | |
pg_dump <DB_NAME> -U <USER_NAME> | gzip > <FILE_NAME>.gz | |
#RESTORE | |
gunzip -c <FILE_NAME>.gz | psql <DB_NAME> | |