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
(function() { | |
// ボタンのスタイル | |
const buttonStyle = { | |
position: 'fixed', | |
bottom: '20px', | |
right: '10px', | |
width: '50px', | |
height: '50px', | |
backgroundColor: '#000000', | |
'border-radius': '50%', |
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
{ | |
"name": "zennのRSSフィードを要約してNotionに貯める", | |
"nodes": [ | |
{ | |
"parameters": {}, | |
"id": "2af18bb2-3d04-4f9b-b31d-6ecfd7550830", | |
"name": "When clicking \"Execute Workflow\"", | |
"type": "n8n-nodes-base.manualTrigger", | |
"typeVersion": 1, | |
"position": [ |
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
// リソースをRangeに変換 | |
// 指定範囲をRangeに変換 | |
// Range同士のANDを取る | |
interface ResourceRange { | |
start: number; | |
length: number; | |
} | |
function convertLengthToResourceRange( | |
length: number[], | |
start: number = 0 |
- [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 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 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', |
NewerOlder