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
pipelines: | |
branches: | |
master: | |
- step: | |
name: Install npm modules with npm install and build production site with npm run build | |
script: | |
- npm install | |
- npm run build | |
artifacts: | |
- node_modules/** |
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
pipelines: | |
branches: | |
master: | |
- step: | |
name: Install npm modules and build production site via tsc | |
script: | |
- npm install | |
- tsc | |
artifacts: | |
- node_modules/** |
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
pipelines: | |
branches: | |
master: | |
- step: | |
name: Install npm modules and build production site via tsc | |
script: | |
- npm install | |
- tsc | |
artifacts: | |
- node_modules/** |
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
pipelines: | |
branches: | |
staging: | |
- step: | |
name: Copy Staging Environment (.env.staging.json) to .env.json | |
script: | |
- cp /src/env/.env.staging.json /src/env/.env.json | |
<<<rest of install, build, SCP, SSH scripts and commands>>> | |
master: | |
- step: |
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
pipelines: | |
branches: | |
staging: | |
- step: | |
name: Copy Staging Environment (.env.staging.json) to .env.json | |
script: | |
- cp /src/env/.env.staging.json /src/env/.env.json | |
- curl -X POST -H 'Content-type: application/json' --data '{"text":"Staging environment copied into environment!"}' YOUR_WEBHOOK_URL_HERE | |
master: | |
- step: |
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
public List<AppParkingOrderModel> GetHourlyIntersectedBookingsByFacility(string facilityName) | |
{ | |
var searchCriteria = new List<Expression<Func<AppParkingOrderModel, bool>>>(); | |
var now = DateTime.Now; | |
var yearFromNow = now.AddYears(1).Year; | |
var startDateTime = new DateTime(now.Year, 1, 1, 0, 0, 0); | |
var endDateTime = new DateTime(yearFromNow, 1, 1, 0, 0, 0); | |
var hours = (endDateTime - startDateTime).TotalHours; |
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 { useEffect, useRef, useState } from 'react'; | |
import { getFavicon } from '../../helpers/getFavicon'; | |
import { AnimationType } from '../../enums/AnimationType'; | |
import { UsePleaseStayOptions } from '../../types/UsePleaseStayOptions'; | |
import { useInterval } from '../useInterval'; | |
export const usePleaseStay = ({ | |
titles, | |
animationType = AnimationType.LOOP, | |
interval = 1000, |
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 React, { PropsWithChildren, useEffect, useState } from 'react'; | |
import { Platform, Animated, Dimensions, Keyboard, KeyboardAvoidingView, StyleSheet, TextInput } from 'react-native'; | |
import {useHeaderHeight} from '@react-navigation/elements'; | |
import { useKeyboard } from '@react-native-community/hooks'; | |
export default function KeyboardShift (props: PropsWithChildren<{}>) { | |
const { children } = props; | |
const [shift, setShift] = useState(new Animated.Value(0)) | |
const keyboard = useKeyboard() |
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 KeyboardShift from './KeyboardShift' | |
export default function YourCoolKeyboardScreen () { | |
// Other logic, variables, etc. | |
return ( | |
<KeyboardShift> | |
{/* Screen components */} | |
</KeyboardShift> |
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
function buildColorPrompt() { | |
# I always like showing what directory I am in | |
directory=$(pwd) | |
# Modify these to whatever you'd like! | |
PROMPT_TEXT="youruser@yourmachine [$directory]" | |
# Comma seperated colors - as many or as few as you'd like | |
PROMPT_COLORS="15" |