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
| #!/usr/bin/env python3 | |
| # digikey_api_v4_product_search.py | |
| # Digikey Basic Product Search Script (Targeting Digikey API v4) | |
| # By Brian Khuu 2024 | |
| # This is a digikey api v4 script that is focused only on just the flow needed to get product information. | |
| # Recommend Reading: | |
| # - https://developer.digikey.com/documentation | |
| # - Section "OAuth 20: 2 Legged Flow" has good information on basic authnetic |
https://code-boxx.com/digital-signage-php-mysql/
- Create a test database and import
1-database.sql. - Change the database settings in
2-lib-pg.phpto your own. - Access
3a-admin.htmlto update the pages,4a-signage.htmlto show them. - Run
unpack.bat(Windows)unpack.sh(Mac/Linux). This will create anassetsfolder and save the images below.
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
| # https://stackoverflow.com/questions/45833873/enable-win10-inbuild-hotspot-by-cmd-batch-powershell/60444585#answer-60444585 | |
| [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null | |
| Add-Type -AssemblyName System.Runtime.WindowsRuntime | |
| $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] | |
| Function Await($WinRtTask, $ResultType) { | |
| $asTask = $asTaskGeneric.MakeGenericMethod($ResultType) | |
| $netTask = $asTask.Invoke($null, @($WinRtTask)) | |
| $netTask.Wait(-1) | Out-Null | |
| $netTask.Result |







