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
type Currency = { | |
name: string; | |
code: string; | |
symbol: string; | |
unicode: string; | |
}; | |
export const CRYPTOCURRENCIES: Currency[] = [ | |
{ name: 'Algorand', code: 'ALGO', symbol: '\u023A', unicode: 'Ⱥ' }, | |
{ name: 'Augur', code: 'REP', symbol: '', unicode: 'Ɍ' }, |
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
/* eslint-disable */ | |
export const AllTypesProps: Record<string, any> = { | |
ARN: 'String', | |
AppInstallation: { | |
allSubscriptions: { | |
first: { | |
type: 'Int', | |
array: false, | |
arrayRequired: false, |
This file has been truncated, but you can view the full file.
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
/* eslint-disable */ | |
import { AllTypesProps, ReturnTypes } from './const'; | |
type ZEUS_INTERFACES = | |
| GraphQLTypes['AppPurchase'] | |
| GraphQLTypes['CalculatedDiscountApplication'] | |
| GraphQLTypes['CommentEventSubject'] | |
| GraphQLTypes['CustomerMoment'] |
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
# Git Aliases | |
alias g='git' | |
compdef g=git | |
## Status | |
alias gs='git status' | |
compdef _git gst=git-status | |
alias gss='git status -s' |
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
const waitFor = (ms) => new Promise(r => setTimeout(r, ms)); | |
async function asyncForEach(array, callback) { | |
for (let index = 0; index < array.length; index++) { | |
await callback(array[index], index, array); | |
} | |
} | |
const start = async () => { | |
await asyncForEach([1, 2, 3, 4, 5], async (num) => { |
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
// protocol declaration | |
protocol myDelegate { | |
func myFunction() | |
} | |
// Receiver / Performer / Intern | |
class Receiver: SomeClass, myDelegate { | |
// instantiate instance of sender class before this | |
caller.delegateInstance = self |
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
/** | |
* Display recommended plugin notice only on the plugins page, can be dismissed | |
*/ | |
add_action('admin_notices', 'nikkon_recommended_plugin_notice'); | |
function nikkon_recommended_plugin_notice() { | |
global $pagenow; | |
global $current_user; | |
$user_id = $current_user->ID; |