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
using System; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
namespace DNSResolve | |
{ | |
class Program | |
{ | |
public static async Task Main(string[] args) | |
{ |
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
image: microsoft/dotnet:2.1-sdk-alpine | |
pipelines: | |
default: | |
- step: &testsStep | |
name: Tests | |
caches: | |
- dotnetcore | |
script: | |
- export PROJECT_NAME=relative/path/to/tests/project |
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
service: my-service-name | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
region: us-east-1 | |
environment: | |
NODE_ENV: ${self:custom.stage} | |
custom: | |
stage: ${opt:stage, self:provider.stage} |
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
UPDATE table_name | |
SET (column1, column2, column3) = | |
( | |
data_table.column1, | |
data_table.column2, | |
data_table.column3 | |
) | |
FROM ( | |
SELECT | |
unnest(array[@Column1Values]) as column1, |
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
INSERT INTO table1 | |
(id, column1, column2, column3) | |
VALUES | |
(:id, :column1, :column2, :column3) | |
ON CONFLICT (id) DO UPDATE | |
SET | |
column1 = EXCLUDED.column1, | |
column2 = EXCLUDED.column2, | |
column3 = EXCLUDED.column3; |
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 logging | |
import urllib.request | |
import boto3 | |
from settings import OBJECT_STORAGE_KEY, OBJECT_STORAGE_SECRET, OBJECT_STORAGE_REGION, OBJECT_STORAGE_BUCKET | |
logger = logging.getLogger(__name__) | |
s3config = { | |
"region_name": OBJECT_STORAGE_REGION, | |
"endpoint_url": "https://{}.digitaloceanspaces.com".format(OBJECT_STORAGE_REGION), |
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 json | |
from json import JSONDecodeError | |
from typing import List | |
from selenium import webdriver | |
from selenium.common.exceptions import WebDriverException | |
driver = webdriver.Remote( | |
command_executor='{}/wd/hub'.format('http://localhost:4444'), | |
desired_capabilities=webdriver.ChromeOptions().to_capabilities(), |
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
#include <Arduino.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define TEMP_PIN D5 | |
#define TEMP_SENSOR_PRECISION 8 | |
#define TEMP_INTERRUPT_CYCLES ESP.getCycleCount() + 50000000 | |
// Change this to your sensor address | |
#define TEMP_SENSOR_ADDR {0x28, 0x35, 0x33, 0xB3, 0x06, 0x00, 0x00, 0x1A} |