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
import http.client | |
import hmac | |
import hashlib | |
import json | |
import time | |
import base64 | |
import uuid | |
from enum import Enum | |
import math |
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
[CollectionDefinition(nameof(PlaywrightFixture))] | |
public class SharedPlaywrightCollection : ICollectionFixture<PlaywrightFixture> {} | |
// ReSharper disable once ClassNeverInstantiated.Global | |
public class PlaywrightFixture : IAsyncLifetime | |
{ | |
public async Task InitializeAsync() | |
{ | |
PlaywrightInstance = await Playwright.CreateAsync(); | |
Browser = await PlaywrightInstance.Chromium.LaunchAsync(); |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract BikeChain { | |
address owner; | |
constructor() { | |
owner = msg.sender; |
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
foreach (int i in 3..5) | |
{ | |
Console.WriteLine(i); | |
} | |
foreach (int i in ..3) | |
{ | |
Console.WriteLine(i); | |
} |
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
<!-- | |
# Caffeinated # | |
ToDo app made with Vue.js | |
to sample Caffeine backend (https://github.com/rehacktive/caffeine) | |
Created on Oct 24, 2021 | |
by Calogero Miraglia (https://github.com/calogxro) | |
GitHub: https://gist.github.com/calogxro/6e601e07c2a937df4418d104fb717570 |
This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# Box | |
config.vm.box = "StefanScherer/windows_2019" | |
# Additional parameters to communicate with Windows | |
config.vm.boot_timeout = 60 |
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
#!/bin/bash | |
set -e | |
# specify your MFA_DEVICE_ARN | |
MFA_DEVICE_ARN=YOURMFAARN | |
PATH_TO_CREDENTIALS_FILE=/path/to/.aws/credentials | |
echo $PATH_TO_CREDENTIALS_FILE | |
#1H = 3600 | |
#2H = 7200 | |
#3H = 10800 |
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
brew tap homebrew/cask-fonts | |
brew install --cask font-cascadia-code | |
brew install --cask font-cascadia-code-pl | |
brew install --cask font-cascadia-mono | |
brew install --cask font-cascadia-mono-pl |