Skip to content

Instantly share code, notes, and snippets.

View sttk's full-sized avatar

Takayuki Sato sttk

  • self-employed
  • Saitama, Japan
View GitHub Profile
@sttk
sttk / checks-for-plain-objects.md
Created March 11, 2021 13:01
Checks for plain objects

(Node.js v0.11〜)

               typeof=o       protoToStr     proto=ObjProto proto=null     ctor=Obj       ctor=null      protoCtor=Obj  protoCtor=null 
-- strict plain object --
(1)            true           true           true           false          true           false          true           false          
(2)            true           true           true           false          true           false          true           false          
(3)            true           true           true           false          true           false          true           false          
-- wider plain object --
(4)            true           true           false          true           false          false          false          false          
@sttk
sttk / java-named-parameters.md
Last active March 20, 2024 13:56
Java named parameters

Java named parameters

By using Consumer like functional interface.

The sample code is as follows:

package mypackage;

import static mypackage.MyData.NamedParam.*;

Gemini CLI on docker container

1. Build a docker image for gemini-cli

1.1. Install gemini-cli

FROM node:24

RUN npm install -g @google/gemini-cli --ignore-scripts

Copilot CLI on docker container

1. Build a docker image for copilot-cli

1.1. Install copilot-cli

FROM node:24

RUN npm install -g @github/copilot