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
| function Set-UserGroups($loginName, $employeeType, $dept, $state, $regionId, $pc) | |
| { | |
| # Load the groups from the external group_arrays file. | |
| # Use this file to manage all groups and changes to groups | |
| # Blocking out for now and loading the groups as part of this main script. | |
| #. .\group_arrays.ps1 | |
| # THESE ARE SAMSON EMPLOYEE groups | |
| $SAMSON_Array = @("!All_Samson_Employees", "!SamsonEmployees", "Domain Users", "Infosource", "Samson_Internet") |
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
| Start-Transcript -Path "C:\bin\ps\Account_Automation\TestAD.txt" | |
| # Import the Active Directory cmdlets | |
| Import-Module ActiveDirectory | |
| New-ADUser -EmployeeID '10551' -SamAccountName 'taylortobaben' -UserPrincipalName 'taylortobaben@samim.com' | |
| -GivenName 'Taylor' -Surname 'Tobaben' -DisplayName 'Tobaben, Taylor' -path 'Immediadent' | |
| -Company 'Immediadent' -Fax '' -OfficePhone '9132232051' | |
| -Title 'Test Title' -EmailAddress 'taylortobaben@immediadent.com' -Enabled 1 -name 'Taylor Tobaben' | |
| -AccountPassword (ConvertTo-SecureString -AsPlainText '1234!$SamsonDent' -Force) -ChangePasswordAtLogon 1 |
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
| /** | |
| * Finds the region where county belongs. Return Region number. | |
| * | |
| * @parm none. | |
| * @return Region number. | |
| * @customfunction | |
| */ | |
| function FindRegion(e){ | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = ss.getSheetByName("Sheet1"); |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| /* Popular Ice Cream Totals Quiz | |
| * | |
| * Using the data array and .reduce(): | |
| * - Return an object where each property is the name of an ice cream flavor | |
| * and each value is an integer that's the total count of that flavor | |
| * - Store the returned data in a new iceCreamTotals variable | |
| * | |
| * Notes: | |
| * - Do not delete the data variable | |
| * - Do not alter any of the data content |
Sometimes you need to use API Keys to use things like the Speech API. And then you Google a bit and follow all the instructions. But the Chromium Project's API Keys page does a not-so-great of explaining how to do this, so I will.
- Download Chromium.
- You'll notice a yellow disclaimer message appear as a doorhanger:
Google API Keys are missing. Some functionality of Chromium will be disabled.Learn More. - Clicking on that link takes you to the confusing API Keys docs page.
- If you aren't already, subscribe to the chromium-dev@chromium.org mailing list. (You can just subscribe to the list and choose to not receive any mail. FYI: the Chromium project restricts the APIs to those subscribed to that group - that is, Chromium devs.)
- Make sur
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
| // Remove Duplicates from an array | |
| const removeDuplicates = | |
| arr => arr.filter((item, index) => index === arr.indexOf(item)); | |
| const removeDuplicates1 = array => [...new Set(array)]; | |
| const removeDuplicates2 = array => Array.from(new Set(array)); | |
| // Flattens an array(doesn't flatten deeply). |
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
| // useSearch file | |
| import React, { useEffect } from "react"; | |
| import axios from "axios"; | |
| import { useImmerReducer } from "./useImmerState"; | |
| import { baseSelectedItems } from "../constants"; | |
| export function useSearch(selectedItems) { | |
| function reducer(draft, action) { | |
| switch (action.type) { |
- Big Me
- Plush
- Interstate Love Song
- My Own Worst Enemy - need to practice harmony for ending outro.
- My Hero - Break on Bridge and wait for 2 count on drumsticks to begin again.
- Summer of '69 - Fidel sings this song.
- Santa Monica - Focus on 2 chorus vocal at the end and then watch for cue from drums on how to end the song.
- Possum Kingdom - Repeat "Do you wanna die?" line -> Chorus -> End in E on guitars