長澤 太郎さん ( @ngsw_taro )
Svetlana Isakovaさん( @sveta_isakova )
https://speakerdeck.com/svtk/whats-new-in-kotlin
八木俊広さん ( @sys1yagi )
https://speakerdeck.com/sys1yagi/kotlin-korutinwo-li-jie-siyou-2019-kotlinfest2019
// Put this file on top directory in your expo project. | |
APP_JSON_FILE = 'app.prod.json' | |
var app_json = require(APP_JSON_FILE) | |
version = app_json.expo.version | |
console.log(`Latest version: ${version}`) | |
match = /([0-9]+\.[0-9]+\.)([0-9]+)/.exec(version) | |
major_minor_version = match[1] | |
patch_version = match[2] |
Pick an element from an array every day, with 3 conditions. 1. while a loop, the element should not be same. 2. for every loop, order should be random. 3. no external memory. | |
ある配列から、毎日要素を取り出したい。ただし、配列が一周するまでは要素が重複してはいけず、また、毎周の順番が固定でもいけない。 | |
an array. | |
ある配列がある。 | |
``` | |
["apple", "banana", "carrot"] | |
``` |
長澤 太郎さん ( @ngsw_taro )
Svetlana Isakovaさん( @sveta_isakova )
https://speakerdeck.com/svtk/whats-new-in-kotlin
八木俊広さん ( @sys1yagi )
https://speakerdeck.com/sys1yagi/kotlin-korutinwo-li-jie-siyou-2019-kotlinfest2019
Resources: | |
CDKTESTHIROGA2CBE18D7: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsHostnames: true | |
EnableDnsSupport: true | |
InstanceTenancy: default | |
Tags: | |
- Key: Name |
I hereby claim:
To claim this, I am signing this object:
dataclasses.asdict( | |
obj, | |
dict_factory=lambda tuples: {tuple[0]: tuple[1] for tuple in tuples if tuple[1] is not None} | |
) |
# Reference | |
# TBD... |
### Keybase proof | |
I hereby claim: | |
* I am xhiroga on github. | |
* I am hiroga (https://keybase.io/hiroga) on keybase. | |
* I have a public key whose fingerprint is 1694 5E22 1B0B AF41 3918 A7F1 BAB0 76B5 3124 D139 | |
To claim this, I am signing this object: |
function protectAllSheets() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var shs = ss.getSheets(); | |
var me = Session.getEffectiveUser(); | |
for (var i = 0; i < shs.length; i++){ | |
var sheet = shs[i] | |
var protection = sheet.protect().setDescription('protect sheet by "function protectAllSheets()"'); | |
protection.addEditor(me); | |
protection.removeEditors(protection.getEditors()); | |
if (protection.canDomainEdit()) { |
doit
はシンプルなdotfiles
マネージャーです。
GitHubで一番人気のあるmathiasbynens/dotfilesの形式に対応しています。
実際、doit
の名前はそのリポジトリのbootstrap用シェルスクリプトの関数から取られています。
バイナリをインストールしたら、指定したdotfilesリポジトリのファイルを $HOME
にコピーすることしかできません。しかも、同名のファイルがある場合は(確認の後)上書きします。
しかし、テンプレートエンジンやパスワードマネージャーとの統合はサポートされています。(chezmoiに影響されています)