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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<legalEntityCreateRequest | |
xmlns="http://preprod-url"> | |
<legalEntityName>Yarrgh Pirate Co.</legalEntityName> | |
<legalEntityType>INDIVIDUAL_SOLE_PROPRIETORSHIP</legalEntityType> | |
<legalEntityOwnershipType>PRIVATE</legalEntityOwnershipType> | |
<doingBusinessAs>Jolly Roger Services</doingBusinessAs> | |
<taxId>551351516</taxId> | |
<contactPhone>5555555555</contactPhone> | |
<annualCreditCardSalesVolume>0</annualCreditCardSalesVolume> |
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
# Install zsh | |
sudo apt update && sudo apt install -y zsh | |
# Install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Node/NPM/Yarn | |
sudo apt install -y npm |
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
something. |
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
// Reference: https://facebook.github.io/react-native/docs/flatlist.html | |
class MultiSelectList extends React.PureComponent { | |
state = {selected: (new Map(): Map<string, boolean>)}; | |
_keyExtractor = (item, index) => item.id; | |
_onPressItem = (id: string) => { | |
// updater functions are preferred for transactional updates | |
this.setState((state) => { |
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
// List | |
const prefs = new Map(); | |
// Toggle | |
const togglePref = (prefName) => { | |
prefs.set(prefName, !prefs.get(prefName)); | |
return; | |
} |
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
// Track | |
let preferences = { | |
allowNotifications: false, | |
shareLocation: false, | |
showFullName: false, | |
}; | |
// Toggle | |
const togglePref = (prefName) => { | |
preferences[prefName] = !preferences[prefName]; |
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
// @flow | |
/** | |
* Adds two numbers together | |
*/ | |
function add(first: number, second: number): number { | |
return first + second; | |
} |
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
/** | |
* Adds two numbers together | |
* | |
* @param {number} first The First Number | |
* @param {number} second The Second Number | |
* @returns {number} | |
*/ | |
function add(first, second) { | |
return first + second; | |
} |
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
<?php | |
// Normal php conditional | |
if (true) { | |
echo 'This normal one is true!'; | |
} else { | |
echo 'Its false'; | |
} | |
// Alternative syntax | |
if (true): |
NewerOlder