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
import React from 'react'; | |
import './ExpensesFilter.css'; | |
const ExpensesFilter = (props) => { | |
const [selectedYear, setSelectedYear] = React.useState('2020'); | |
const selectYearHandler = (e) => { | |
setSelectedYear(e.target.value); | |
props.onSelectYear(e.target.value); | |
} |
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
def readfile(filepath): | |
data='' | |
if not (filepath==''): | |
with open(filepath, 'r') as file: | |
data = file.read() | |
return data | |
def writefile(filepath,contents=''): |
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
$csv = @() | |
$csv += ,("Name","DisplayName","Description") | |
$csv += ,("AD-Certificate","Active Directory Certificate Services","Active Directory Certificate Services (AD CS) is used to create certification authorities and related role services that allow you to issue and manage certificates used in a variety of applications.") | |
$csv += ,("ADCS-Cert-Authority","Certification Authority","Certification Authority (CA) is used to issue and manage certificates. Multiple CAs can be linked to form a public key infrastructure.") | |
$csv += ,("ADCS-Enroll-Web-Pol","Certificate Enrollment Policy Web Service","The Certificate Enrollment Policy Web Service enables users and computers to obtain certificate enrollment policy information even when the computer is not a member of a domain or if a domain-joined computer is temporarily outside the security boundary of the corporate network. The Certificate Enrollment Policy Web Service works with the Certificate Enrollment Web Service to provide policy-based automatic certificate enr |
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
$modulesFolder = ($env:PSModulePath -split ";")[0]; $modulesFolder; wsl bash -c "./copyPSmodules.sh '$modulesFolder' 'functions'" |
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
#!/usr/bin/env bashSCRIPT_IS_RUN_FROM=$(pwd) | |
PS_DEFAULT_DIR="$1" | |
PS_DEFAULT_DIR="$(wslpath -- "$PS_DEFAULT_DIR")" | |
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; # get the script dir | |
# Now loop through every file in MyFunctionsModules | |
# Each file should have a directory of the same name created in and be copied to that directory. | |
cd -- "$SCRIPT_DIR" | |
cd -- "$2" | |
FILESFROM=$(pwd) | |
for i in * |
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
notepad copyPSmodules.sh |
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
$modulesFolder = ($env:PSModulePath -split ";")[0] |
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
> ls .\functions\ | |
Directory: C:\Users\itsme\functions | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
-a---l 6/14/2022 1:35 PM 37452 MyModule.ps1 |
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
$ tree functions/ | |
functions/ | |
└── MyModule.ps1 |
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
Get-Command -module MyModule |
NewerOlder