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 axios = require("axios"); | |
| async function findHardcodedEmails(repos) { | |
| const emails = new Set(); | |
| for (const repo of repos) { | |
| try { | |
| const response = await axios.get( | |
| `https://api.github.com/search/code?q=email+in:file+repo:${repo}` | |
| ); |
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
| FROM golang:1.17 AS builder | |
| WORKDIR /src | |
| COPY . . | |
| RUN go mod download | |
| RUN go build -o /app . | |
| FROM debian:buster-slim | |
| COPY --from=builder /app /app | |
| EXPOSE 4000 |
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
| FROM node:12.14.1-alpine AS BASEIMAGE | |
| WORKDIR /src | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run prebuild && npm run build && npm prune --production | |
| FROM node:12.14.1-alpine |
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 { useState, useEffect } from 'react'; | |
| import Geolocation from '@react-native-community/geolocation'; | |
| export const useGeoLocation = () => { | |
| const [coordinates, setCoordinates] = useState(); | |
| let mounted = true; | |
| let watchId; | |
| const onEvent = (event) => { |