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
export LD_LIBRARY_PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/build/downloads/local/lib:$LD_LIBRARY_PATH | |
export PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/build/downloads/local/bin:$PATH | |
export GST_PLUGIN_PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/build:$GST_PLUGIN_PATH | |
# kinesis-video-producer-test のアクセスキー | |
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX | |
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
export AWS_DEFAULT_REGION=ap-northeast-1 | |
STREAM_NAME=stream-test |
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
{ | |
"settingsVersion": "1.67", | |
"exclusionRules": [ | |
{ | |
"pattern": "https?://mail.google.com/*", | |
"passKeys": "jkuxogai" | |
}, | |
{ | |
"pattern": "https?://cacoo.com/*", | |
"passKeys": "" |
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 traceback | |
import logger | |
logger.error(traceback.format_exc()) |
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
class Creative(BaseModel): | |
""" | |
TEST | |
""" | |
FOLDER_NAME = "creatives" | |
class StatusCd(models.TextChoices): | |
BEFORE_REVIEWING = 'BR', '審査前' | |
REVIEWING = 'RE', '審査中' | |
AFTER_REVIEWING = 'AR', '審査終了' |
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 smtplib | |
import email.utils | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
SENDER = '' | |
SENDERNAME = 'testman' | |
RECIPIENT = '' # to mail address | |
REPLY_TO = '' |
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
RUN ckan-pip install --no-cache-dir git+https://github.com/alphagov/ckanext-s3-resources#egg=ckanext-s3-resources && \ | |
ckan-pip install --no-cache-dir -r https://raw.githubusercontent.com/alphagov/ckanext-s3-resources/master/requirements.txt |
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
$ -> | |
$(".editable_number").keydown (e) -> | |
code = e.keyCode | |
if (code >= 48 && code <= 57) or (code >= 96 && code <= 105) or (code == 8) | |
return true | |
else if code == 13 | |
next_id = next_editable($(this).attr('id')) | |
$("#" + next_id).focus() | |
return false | |
else |
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
@next_editable = (id) -> | |
first = null | |
target = null | |
flg = false | |
$(".editable").each (index) -> | |
if index == 0 | |
first = $(this).attr('id') | |
if flg == true | |
target = $(this).attr('id') |
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
status key command | |
Composition Backspace Backspace | |
Conversion Backspace Cancel | |
Precomposition Backspace Revert | |
Composition Ctrl [ Cancel | |
Conversion Ctrl [ Cancel | |
Composition Ctrl @ ConvertToHalfAlphanumeric | |
Conversion Ctrl @ ConvertToHalfAlphanumeric | |
Precomposition Ctrl Backspace Undo | |
Prediction Ctrl Delete DeleteSelectedCandidate |
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
[1,2,3].map.with_index { |n,i| [i,n*2] } #=> [[0,2],[1,4],[2,6]] |
NewerOlder