Skip to content

Instantly share code, notes, and snippets.

View watadarkstar's full-sized avatar
🏠
Working from home

Adrian Carolli watadarkstar

🏠
Working from home
View GitHub Profile
@watadarkstar
watadarkstar / gist:108c790267d757fa70420148708019b8
Created September 3, 2025 20:55
.github/workflows /scheduled.yaml
name: Daily cron job at noon EST and 4PM EST
on:
schedule:
# minute, hour, day of month, month, day of week
# runs at 12:00 EST and 4:00 EST Monday through Friday
- cron: "0 20,21,16,17 * * 1-5"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
cron:
@watadarkstar
watadarkstar / build-submit-production.yml
Created February 15, 2025 15:44
Expo build and submit
name: Build and submit to production
on:
push:
branches: ["main"]
pull_request_labeled:
labels:
- "eas-build-submit-production-all"
jobs:
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
function withScrollToTop(Component) {
function Wrapped({ location, ...rest }) {
const { pathname } = location;
useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
import React from 'react';
import { render, cleanup } from 'react-testing-library';
import { AppsNav } from '.';
describe('<AppsNav />', () => {
afterEach(cleanup);
const history = {
listen: jest.fn(),
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');