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
class FlashAsyncToken(AbortToken): | |
def __init__(self, color, times=1, time_on=0.1, time_off=0.1, abort_token=None): | |
super().__init__() | |
self.color = color | |
self.counter = 0 | |
self.times = times | |
self.time_on = time_on | |
self.time_off = time_off | |
self.parent = abort_token | |
self.__alarm = Timer.Alarm(self.__light_on, us=5, periodic=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
#define LED_WHITE PIN_A1 | |
#define LED_GREEN PIN_A0 | |
void setup() { | |
pinMode(LED_WHITE, OUTPUT); | |
pinMode(LED_GREEN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_WHITE, HIGH); |
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
root = true | |
# Defaults | |
[*] | |
indent_size = 4 | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.{xml,js,ts,json,*proj,targets,html,props,nim,nimble,nim.cfg}] |
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"?> | |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.3.100.5" /> |
This file has been truncated, but you can view the full file.
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"?> | |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.2</TargetFramework> | |
<UserSecretsId>0864c15e-1de4-426a-97df-a43cb2700536</UserSecretsId> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.4" /> | |
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="2.2.0" /> |
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
root = true | |
# Defaults | |
[*] | |
indent_size = 4 | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.{xml,json,js,ts,jsx,tsx,vue,css,styl,*proj,targets,html,props,yml,nim,nimble,nim.cfg,wsdl,wadl,cmake}] |
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
# docker build -t fredrikhr/googleortools-tsp-sample-dotnetcore -f GoogleOrToolsDotnetCore.dockerfile https://gist.github.com/6cae577fcedba6311402c7e4ccefc021.git | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build | |
WORKDIR /app/GoogleOrToolsDotnetCore | |
# Install curl | |
RUN set -x \ | |
# APT Update & Upgrade | |
&& apt-get update \ | |
&& apt-get upgrade --yes 2>&1 \ |
OlderNewer