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
{ | |
"name": "PetRescuePool", | |
"description": "The test pool for recovering funds to pet rescue centers", | |
"ticker": "PETRP", | |
"homepage": "https://www.stillnopage.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
import { useEffect, useState } from 'react'; | |
export default function useLocalStorage(key, default_value) { | |
const [persistedData, setPersistedData] = useState(default_value); | |
useEffect(() => { | |
const value = localStorage.getItem(key); | |
const isNotNull = value !== null; | |
const isNotUndefined = value !== undefined; |
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 { useState } from 'react'; | |
export default function useBoolean(initial_value) { | |
const [value, setValue] = useState(initial_value); | |
const setTrue = () => setValue(true); | |
const setFalse = () => setValue(false); | |
return [value, setTrue, setFalse]; | |
} |
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
param( | |
[Parameter(Mandatory=$true)] | |
[String] $ConfigurationFilePath | |
) | |
# Reading the configuration file | |
$Configuration = Get-Content $ConfigurationFilePath | |
$Configuration = Import-Csv -Path $ConfigurationFilePath -Delimiter ';' | |
$Configuration | Foreach { |
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
param( | |
[Parameter(Mandatory=$true)] | |
[String] $Location, | |
[Parameter(Mandatory=$true)] | |
[String[]] $Extensions | |
) | |
$CmdParams = @{ | |
Path = $Location |
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
param( | |
[Parameter(Mandatory=$true)] | |
[String] $Location, | |
[Parameter(Mandatory=$true)] | |
[String] $NameFilter, | |
[Parameter(Mandatory=$true)] | |
[String] $OutputFile | |
) |