Skip to content

Instantly share code, notes, and snippets.

@y-takagi
y-takagi / README.md
Last active January 19, 2023 16:09
GoogleのPaginationっぽいやつ

GoogleのPaginationっぽいやつ

Tech Stack

  • Angular
  • Angular Material
  • Tailwindcss
@y-takagi
y-takagi / grpc-web.md
Last active June 19, 2021 01:46
gRPC-Web Basics.

gRPC-Web Basics.

Protocol

Let's Create a Sample App

Create a greet service and client.

Platform

@y-takagi
y-takagi / rust-doc.md
Last active April 20, 2021 10:00
The Rust Programming Language

The Rust Programming Language

  • 輪読会発表資料
  • 教材

4. 所有権を理解する

所有権はRustの最も特徴的な機能であり、これによってGCなしで自動メモリ管理が可能になっています。

4.1 所有権とは?

全てのプログラムは、実行中にメモリを管理する必要があります。プログラミング言語によってメモリ管理の方法が違いますが、大まかには自動で管理するGCタイプ(SwiftのARCも実行時OHを考慮してGCとする)と、手動でメモリを確保、解放するタイプがあります。Rustでは第3の選択肢を取っています。メモリは、コンパイラがコンパイル時にチェックする一定の規則とともに所有権システムを通じて管理されています。どの所有権機能も、実行中にプログラムの動作を遅くすることはありません。

@y-takagi
y-takagi / rust-setup.md
Last active April 16, 2021 00:33
Rust setup
@y-takagi
y-takagi / IBeaconPlugin.kt
Created April 14, 2021 00:32
iBeacon Plugin for capacitor2.
package io.ionic.starter.plugins
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.content.pm.PackageManager
import com.getcapacitor.NativePlugin
import com.getcapacitor.Plugin
import com.getcapacitor.PluginCall
@y-takagi
y-takagi / typescript-cookbook.md
Last active April 16, 2021 00:30
Typescript Cookbook

Typescript Cookbook

Yet another enum

export const signal = ['red', 'green', 'blue'] as const;
export type Signal = typeof signal[number];

export const color = { red: 0, green: 1, blue: 2 } as const;
export type Color = typeof color[keyof typeof color];
@y-takagi
y-takagi / 2020.md
Last active December 31, 2020 14:14
2020年の振り返り

2020年の振り返り

twitterで自分の1年のツイートを検索して振り返ってみた。

from:y_takagi since:2020-01-01 until:2020-12-31

tl;dr

  • 今年の2月頃から日本でもコロナ感染者出てきて、1年中自粛モードだった。おそらく来年も続くだろう。
  • 自粛による運動不足によって体調を崩したこともあり、ジムに通うようになった。継続中。
  • 肩こりが酷かったので、分割キーボードを導入してみた。
@y-takagi
y-takagi / ionic-framework.md
Last active April 16, 2021 00:36
Ionic Framework の紹介

Ionic Framework の紹介

Ionic Framework とは

Ionic(Drifty Co.)チームが開発している、Webテクノロジー(HTML、CSS、JavaScript)を使って、モバイルとデスクトップアプリケーションをつくるためののUIフレームワーク。

現在、AngularとReactを公式サポートしており、Vueのサポートも開発中。

Other Major Cross-Platform Frameworks

  • React Native
    • Created by Facebook
@y-takagi
y-takagi / fido.md
Last active September 12, 2020 10:22
FIDO コトハジメ

FIDO コトハジメ

はじめに

この資料はFIDOについて調べた内容を、自分なりに解釈してまとめた内容となっています。不適切な説明がされている可能性もあるのでその点はご注意ください。

FIDO とは

Fast Identity Onlineの略語で、従来のID/Passwordによる本人認証に代わる認証技術としてFIDO Allianceによって規格の策定と普及推進が行われている

  • FIDO Alliance
  • 2012年に設立
@y-takagi
y-takagi / dayjs-extend.md
Last active August 10, 2020 02:41
Add local plugin to dayjs.

Add local plugin to dayjs.

// dayjs.ext.ts

import dayjs from 'dayjs';

declare module 'dayjs' {
  interface Dayjs {
 toISODate(): string;