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
| // put it to <header></header> inside <script></script> tag | |
| // make sure we run it once the page loads | |
| window.addEventListener('load', parseAirtableLinks) | |
| function parseAirtableLinks() { | |
| console.log('Parse links started...') | |
| let urlParams = new URLSearchParams(window.location.search); |
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
| /* eslint-disable no-unused-vars */ | |
| /* eslint-disable no-param-reassign */ | |
| module.exports = function override(config, env) { | |
| if (!config.plugins) { | |
| config.plugins = []; | |
| } | |
| config.module.rules.push({ | |
| test: /\.html$/i, |
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
| console.log('Success URL script modifier started'); | |
| var isAlreadyWatching = {}; | |
| $( document ).ready(startSuccessUrlModifier); | |
| function startSuccessUrlModifier() { | |
| console.log('Document is ready'); |
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 elementSelector = '#someElement'; | |
| var checkExist = setInterval(function() { | |
| if ($(elementSelector).length >= ) { | |
| console.log("element loaded!"); | |
| clearInterval(checkExist); | |
| } | |
| }, 100); |
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 isCloseToBottom = ({ layoutMeasurement, contentOffset, contentSize }) => { | |
| const paddingToBottom = 20; | |
| return layoutMeasurement.height + contentOffset.y >= | |
| contentSize.height - paddingToBottom; | |
| }; | |
| <ScrollView | |
| style={styles.scrollViewContainer} | |
| scrollEventThrottle={1000} | |
| onScroll={({ nativeEvent }) => { |
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 { remoteConfig } from './index'; | |
| const admin = require('../functions/node_modules/firebase-admin'); | |
| const _ = require('../functions/node_modules/lodash'); | |
| const serviceAccount = require('../configs//firebase/service-key.development.json'); | |
| admin.initializeApp({ | |
| credential: admin.credential.cert(serviceAccount), | |
| // databaseURL: "https://<your-database-name>.firebaseio.com" |
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
| /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
| /* Latitude/longitude spherical geodesy tools (c) Chris Veness 2002-2017 */ | |
| /* MIT Licence */ | |
| /* www.movable-type.co.uk/scripts/latlong.html */ | |
| /* www.movable-type.co.uk/scripts/geodesy/docs/module-latlon-spherical.html */ | |
| /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
| 'use strict'; | |
| if (typeof module!='undefined' && module.exports) var Dms = require('./dms'); // ≡ import Dms from 'dms.js' |
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
| { fontWeight: '100' }, // Thin | |
| { fontWeight: '200' }, // Ultra Light | |
| { fontWeight: '300' }, // Light | |
| { fontWeight: '400' }, // Regular | |
| { fontWeight: '500' }, // Medium | |
| { fontWeight: '600' }, // Semibold | |
| { fontWeight: '700' }, // Bold | |
| { fontWeight: '800' }, // Heavy | |
| { fontWeight: '900' }, // Black |
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
| 0x2A3E912C6787DD11e27c6c6E67deFF1EB4f16Ad9 |
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
| function shuffle(array) { | |
| var currentIndex = array.length, temporaryValue, randomIndex; | |
| // While there remain elements to shuffle... | |
| while (0 !== currentIndex) { | |
| // Pick a remaining element... | |
| randomIndex = Math.floor(Math.random() * currentIndex); | |
| currentIndex -= 1; |