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
from ecsruntask import ECSRunTask # import wherever your task lives | |
from prefect import task, Flow | |
ecs = ECSRunTask( | |
task_definition="stockdata", | |
cluster="ecsDemo", | |
network_configuration={ | |
"awsvpcConfiguration": { | |
"subnets": ["subnet-xxx", "subnet-xxx", "subnet-xxx"], |
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
##!/usr/bin/env python3 | |
import os | |
import sys | |
from pexpect.pxssh import pxssh as PXSSH | |
import getpass | |
class Debug_PXSSH(PXSSH): | |
def sendline(self, input='') -> int: |
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
# coding: utf-8 | |
from selenium import webdriver | |
edge_options = { | |
"executable_path": "/Users/takahiro/selenium-webdrivers/edge-83/msedgedriver", | |
# ofcourse change path to driver you downloaded. | |
"capabilities": { | |
"platformName": 'mac os x', # I get this from Chrome driver's capabilities | |
# "os" : "OS X", # also ok. | |
} |
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
# AppVeyor.yml for Zipped files to XCopy Deploy. | |
# - Require VS2013 ($env:MSBUILD_EXE) | |
# - Require 7Zip ($env:szip) | |
# - "C:\opt\nuget3.4\appveyor_nugetconfig\nuget.config" | |
# - C:\opt\nuget3.4\nget.exe | |
# version: 1.0.{build} | |
# 必要に応じてAssemblyInfoパッチなども行う。このymlを共通で使うならここでバージョンしない方が良いと思う。 | |
configuration: Release |
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 System; | |
using System.Linq; | |
using System.Reactive.Linq; | |
namespace RxAndThenWhenFizzBuzz { | |
class Program { | |
static void Main(string[] args) { | |
var numberObserver = Observable.Range(1, 30); | |
var fizzObserver = numberObserver.Select(i => i % 3 == 0 ? "Fizz" : ""); | |
var buzzObserver = numberObserver.Select(i => i % 5 == 0 ? "Buzz" : ""); |
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
// | |
// Dapperを利用するにはパッケージマネージャコンソールで | |
// Install-Package Dapper | |
// と入力して、予めライブラリをプロジェクトに参照設定しておきます。 | |
// | |
namespace DapperSample | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。