- [Android アプリにメニューを追加する https://qiita.com/Uchikoba/items/d2e80c33a3334825bfc4]
- https://developer.android.com/guide/topics/ui/menus?hl=ja
- https://developer.android.com/guide/topics/resources/menu-resource?hl=ja
- メニューの外だしは、showAsActionで設定する
- 古いものだと指定方法が違うらしい https://qiita.com/KeithYokoma/items/e7c7b960a0fb1d983355
- menuリソースにxmlを足す
- Activityにメソッドを足す
- aes-128-ecb は単純なアルゴリズムらしく ivが不要。他の暗号利用モードのときにはivが必要そう。
- update()とfinal()の挙動は、ブロックのサイズを跨いだ時に変化してるっぽい。
- 動かし方: node ./crypto.js
- リンク:
- https://nodejs.org/api/crypto.html
TypeScriptのオブジェクトは「Structural Subtyping(構造的部分型)」という型の実装らしい。
一方JavaとかSwiftでよく知ってるのは「Nominal Subtyping(公称的部分型?)」らしい
アバウトな理解
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
mbp13:~ tak$ brew install flock | |
==> Installing flock from naoty/misc | |
==> Downloading https://github.com/naoty/flock/archive/0.1.0.tar.gz | |
Already downloaded: /Users/tak/Library/Caches/Homebrew/downloads/ca62d84ef3ff77d86b10fab58cd619a6e85e79dba320fc04d73e20a80f149ee0--flock-0.1.0.tar.gz | |
==> swift build -c release | |
Last 15 lines from /Users/tak/Library/Logs/Homebrew/flock/01.swift: | |
2019-03-10 14:34:03 +0900 | |
swift | |
build |
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 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', |
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 MyViewHolder(val binding: CellTextBinding) : RecyclerView.ViewHolder(binding.root) | |
class MyRecycleAdapter(context: Context, val list:List<String>) : RecyclerView.Adapter<MyViewHolder>() { | |
private val layoutInflater = LayoutInflater.from(context) | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder { | |
val binding:CellTextBinding = DataBindingUtil.inflate(layoutInflater,R.layout.cell_text, parent, false) | |
return MyViewHolder(binding) | |
} | |
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
package jp.paming.listsample | |
import android.Manifest | |
import android.content.ContentResolver | |
import android.content.ContentUris | |
import android.content.Context | |
import android.content.pm.PackageManager | |
import android.databinding.DataBindingUtil | |
import android.net.Uri | |
import android.support.v7.app.AppCompatActivity |
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
[ | |
{ | |
"id": "30155774.268828", | |
"type": "tab", | |
"label": "フロー 1", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "e06cf7c7.32e1c8", |
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 SelectedCell:UITableViewCell { | |
override func setHighlighted(_ highlighted: Bool, animated: Bool) { | |
// ↓を呼び出すと、highlightedがfalseの場合に、 | |
// UITableViewCellSelectionStyleで指定した色(.grayとか)になるみたい。 | |
// super.setHighlighted(highlighted, animated: animated) | |
if( highlighted ) { | |
// こっちは指で押した時に呼び出される |