Skip to content

Instantly share code, notes, and snippets.

✌️
Never grow up!

Robin-Manuel Thiel robinmanuelthiel

✌️
Never grow up!
Block or report user

Report or block robinmanuelthiel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View recup.py
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,));
View Dockerfile
#######################################################
# 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
@robinmanuelthiel
robinmanuelthiel / azuredevops-editorconfig.yaml
Last active Apr 4, 2019
EditorConfig Check with Azure DevOps
View azuredevops-editorconfig.yaml
pool:
vmImage: 'Ubuntu 16.04'
steps:
- bash: |
npm install -g eclint
eclint check eclint check $(git ls-files)
failOnStderr: true
displayName: 'Check EditorConfig violations'
@robinmanuelthiel
robinmanuelthiel / webappforcontainer.tf
Last active Sep 28, 2018
The Terraform documentation is missing dedicated configuration details for containers on App Services. Here is, how it's done. https://pumpingco.de/blog/14472/
View webappforcontainer.tf
# 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"
}
@robinmanuelthiel
robinmanuelthiel / MainPage.xaml
Created Feb 16, 2017
Custom Xamarin.Forms Menu Item
View MainPage.xaml
<?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>
@robinmanuelthiel
robinmanuelthiel / EventHubService.cs
Created Oct 8, 2016
Connect to an Azure Event Hub manually
View EventHubService.cs
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;
@robinmanuelthiel
robinmanuelthiel / ArduinoLcdKeypadControl.ino
Last active Aug 17, 2016
A simple Arduino Sketch to control the LCD Keypad Shield (SKU: DFR0009)
View ArduinoLcdKeypadControl.ino
// Use LiquidCrystal library
#include <LiquidCrystal.h>
// Define button values
#define btnNONE 0
#define btnRIGHT 1
#define btnUP 2
#define btnDOWN 3
#define btnLEFT 4
@robinmanuelthiel
robinmanuelthiel / ArduinoMarquee.ino
Created Aug 17, 2016
A simple Arduino Sketch to let a marquee run through a LED panel.
View ArduinoMarquee.ino
// Use LiquidCrystal library to communicate with LCD
#include <LiquidCrystal.h>
// Select the pins used on the LCD panel
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// Define message to show
String message = "My future tweets will be in this format";
void setup() {
View App.xaml.cs
<Application
x:Class="App1.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
RequestedTheme="Light">
<Application.Resources>
<!-- The custom color for the new placeholder -->
<SolidColorBrush x:Key="MyCustomPlaceholderForegroundColor" Color="{StaticResource SystemBaseHighColor}"/>
View MainPage.xaml.cs
protected override async void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
if (!string.IsNullOrEmpty(e.Parameter as string))
{
// Check if all paramters for accessing the light are set
if (App.HomeMatic != null && App.SelectedLightId != 0)
{
var args = ((string)e.Parameter).Split('|');
You can’t perform that action at this time.