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
name: Update documentaion | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
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
export default class CrytoHelpers { | |
static generateRandomString(): string { | |
var array = new Uint32Array(64); | |
window.crypto.getRandomValues(array); | |
return Array.from(array, dec => ('0' + dec.toString(16)).substr(-2)).join(''); | |
} | |
static async pkceChallengeFromVerifierAsync(v: string): Promise<string> { | |
const hashed = await this.sha256(v); | |
return this.base64urlencode(hashed); |
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
# Azure Key Vault for Testing Access | |
resource "azurerm_key_vault" "default" { | |
name = "rothietftestvault" | |
location = azurerm_resource_group.default.location | |
resource_group_name = azurerm_resource_group.default.name | |
tenant_id = data.azurerm_client_config.current.tenant_id | |
sku_name = "standard" | |
} | |
# Azure Key Vault Access Policy for Managed Identity for yourself |
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
# Requirements | |
# - Homebrew: https://brew.sh | |
tap "azure/functions" | |
tap "caskroom/cask" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
# Essentials |
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 RPi.GPIO as GPIO | |
from time import sleep | |
from RpiMotorLib import RpiMotorLib | |
from multiprocessing import Process | |
def rotateMotor(motor, pins, isClockwise): | |
motor.motor_run(pins, .001, 128, isClockwise, False, "half", .05); | |
def open(motorLeft, pinsLeft, motorRight, PinsRight): | |
leftMotorProcess = Process(target=rotateMotor,args=(motorLeft,pinsleft,False,)); |
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
####################################################### | |
# Step 1: Build the application in a container # | |
####################################################### | |
# Download the official ASP.NET Core SDK image | |
# to build the project while creating the docker image | |
FROM microsoft/dotnet:2.1-sdk as build | |
WORKDIR /app | |
# Restore NuGet packages |
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
pool: | |
vmImage: 'Ubuntu 16.04' | |
steps: | |
- bash: | | |
npm install -g eclint | |
eclint check eclint check $(git ls-files) | |
failOnStderr: true | |
displayName: 'Check EditorConfig violations' |
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
# Use the Azure Resource Manager Provider | |
provider "azurerm" { | |
version = "~> 1.15" | |
} | |
# Create a new Resource Group | |
resource "azurerm_resource_group" "group" { | |
name = "pumpingcode-webapp-containers-demo" | |
location = "northeurope" | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage | |
xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:ZeissCantinaMenuSample" | |
x:Class="ZeissCantinaMenuSample.ZeissCantinaMenuSamplePage"> | |
<local:MenuItem x:Name="TestMenuItem" Text="Hallo" Image="AlertIcon.png" Clicked="TestMenuItem_Clicked" /> | |
</ContentPage> |
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
using DachauTemp.Windows.Models; | |
using Newtonsoft.Json; | |
using System; | |
using System.Globalization; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using Windows.Security.Cryptography; | |
using Windows.Security.Cryptography.Core; |
NewerOlder