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
/* | |
* Scramble Ordered Digits | |
* | |
* This function takes in a `passphrase` and `limit` argument and returns | |
* a scrambled list of digits, n ... {limit}. | |
* | |
* This assumes that the original ordered digits are whole numbers starting | |
* from 1 ... {limit} where `limit` is the max digit. | |
* | |
* For example, `scrambleOrderedDigits('Hello World')` hashes 24 digits to the order on the right-hand side: |
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
# Release log function | |
nearestThursday=$(date -v +Thur +%F) | |
lastReleaseCut=$(date -v +Thur -v -14d +%F) | |
# echo $nearestThursday | |
# echo $lastReleaseCut | |
nearestThursdayMonth=$(date -v +Thur +%m) | |
nearestThursdayDay=$(date +%d) |
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
/* @flow */ | |
/** All built-in and custom scalars, mapped to their actual values */ | |
export type Scalars = {| | |
ID: string, | |
String: string, | |
Boolean: boolean, | |
Int: number, | |
Float: number, | |
/** Enum that specifies where the ClinicalProcedure came from */ |
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 idx from 'idx' | |
/* | |
* This code is copyright 2012 by Gavin Kistner, [email protected] | |
* It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt | |
* Schwartzian transform - https://en.wikipedia.org/wiki/Schwartzian_transform | |
* | |
* This is used mainly for additional sorting among equal values due to efficiency. | |
* Example: sortBy(data, o => [o.active, o.age, o.name]); | |
* i.e. sort by active, then amongst active sort by age, then amongst |
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 React from 'react'; | |
import { Linking, Text } from 'react-native'; | |
export default function renderHyperlinkedText(string, baseStyles = {}, linkStyles = {}, openLink) { | |
if (typeof string !== 'string') return null; | |
const httpRegex = /http/g; | |
const wwwRegex = /www/g; | |
const comRegex = /.com/g; | |
const httpType = httpRegex.test(string); | |
const wwwType = wwwRegex.test(string); |
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
class Email_Scraper { | |
constructor(log = false, names = true, scriptURL = '', spreadsheetURL = '') { | |
this.currIndex = 0; | |
this.log = log; | |
this.names = names; | |
this.pendingRecursive = 1; | |
this.scriptURL = scriptURL; | |
this.spreadsheetURL = spreadsheetURL; | |
this.sourceIndex = 0; | |
this.sources = {}; |
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
mkdir -p node_modules/react-native/Libraries/Lists/ && \ | |
for file in 'FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils' 'FillRateHelper'; \ | |
do curl https://raw.githubusercontent.com/facebook/react-native/master/Libraries/Lists/${file}.js > node_modules/react-native/Libraries/Lists/${file}.js; \ | |
done |