Skip to content

Instantly share code, notes, and snippets.

View JarbasHorst's full-sized avatar
💭
🤓

Jarbas Horst JarbasHorst

💭
🤓
View GitHub Profile
The picture has been stored in /home/pi/Desktop/pictures/7343.jpg
Response:
[
{
"faceAttributes": {
"age": 30.2,
"gender": "male"
},
"faceId": "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# Jarbas Horst wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# This code shows how to interact with a push button and Raspberry PI.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# Jarbas Horst wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# This code shows how to interact with the Azure Cognitive Service "Face Api"
# to recognize the age of a person in a picture. The picture is taken using
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>
{
"frameworks": {
"net46":{
"dependencies": {
" SharePointPnPCoreOnline ": "2.16.1706.0"
}
}
}
}
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* Jarbas Horst wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------
*/
using System.Net;
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* Jarbas Horst wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------
*/
import { Version } from '@microsoft/sp-core-library';
Param(
[Parameter(Mandatory=$true)]
[String]
$VirtualMachineName,
[Parameter(Mandatory=$true)]
[String]
$ResourceGroupName,
[Parameter(Mandatory=$true)]
[Boolean]
$Start
PS C:\WINDOWS\system32> Get-PnPApp | Format-Table
Id AppCatalogVersion CanUpgrade Deployed InstalledVersion IsClientSideSolution Title
-- ----------------- ---------- -------- ---------------- -------------------- -----
c0e5418d-2e81-471f-b340-41fb9f55dd50 1.0.0.0 False True True helloworld-webpart-client-side-solution
d1daf774-0cc0-4713-9886-2b43acf5f187 1.0.0.4 False True True jhorst-recent-docs-web-part-client-side-solution
19109eba-5efd-4e1e-a48e-eadf87f6d811 1.0.0.0 False True True search-web-part-client-side-solution
PS C:\WINDOWS\system32> Get-PnPApp -Identity 19109eba-5efd-4e1e-a48e-eadf87f6d811 | Format-Table
Id AppCatalogVersion CanUpgrade Deployed InstalledVersion IsClientSideSolution Title
-- ----------------- ---------- -------- ---------------- -------------------- -----
19109eba-5efd-4e1e-a48e-eadf87f6d811 1.0.0.0 False True True search-web-part-client-side-solution