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
import boto3 | |
autoscaling = boto3.client("autoscaling") | |
#org_param = dict(MinSize=2, DesiredCapacity=2) # 復元先のパラメータ | |
stop_param = dict(MinSize=0, DesiredCapacity=0) # 擬似Stopする時のパラメータ | |
def lambda_handler(event, context): | |
""" | |
cron triggered function |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1444892806511", | |
"Action": [ | |
"autoscaling:UpdateAutoScalingGroup" | |
], | |
"Effect": "Allow", | |
"Resource": "*" |
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
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1234567890123", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" | |
], |
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
rforcecom.getObjectDescription(sf, 'Report')$name |
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
# 特定の名前を持つオブジェクトの情報を抽出する。この場合は「商談」と「商品」 | |
# objlist ... rforcecom.getObjectList() の返り値 | |
objlist[mapply(function(elm){ is.element(elm, c("商談", "商品")) }, objlist$label),] |
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
# | |
# Date: 2018/10/20 | |
# Author: @hassaku_63 | |
# | |
# | |
# Install Vue CLI 3 | |
# | |
npm install -g @vue/cli | |
# or yarn global add @vue/cli |
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
# | |
# Date: 2018-12-08 | |
# Author: hassaku63 | |
# | |
# These codes are licensed under CC0. | |
# http://creativecommons.org/publicdomain/zero/1.0/deed.ja | |
# | |
# Prerequisite: | |
# - Selenium webdriver | |
# |
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
<v-container fuild fill-height> | |
<v-layout justify-center> | |
<v-flex xs12 sm8 md4> | |
<!-- login view --> | |
<v-card> | |
<v-toolbar dark flat> | |
<v-toolbar-title>Login Form</v-toolbar-title> | |
</v-toolbar> | |
<v-card-text> | |
<!-- login form --> |
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
// VSCodeで、エディタとターミナルを往復できるショートカットの定義 | |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+`", |
OlderNewer