Skip to content

Instantly share code, notes, and snippets.

@MSakamaki
MSakamaki / _tsconfig.json
Last active January 7, 2019 02:54
deno.scripts
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
@MSakamaki
MSakamaki / MEMO.md
Created October 3, 2018 05:19
mock library specs memo

feature

use decorators api

@MSakamaki
MSakamaki / schematics.md
Last active March 30, 2018 06:48
@angular/devkit

command

generate schematics and development

# generate new schematics project
schematics blank --name=[schematics Name]
@MSakamaki
MSakamaki / angular-migrate-nx13.ts
Last active December 28, 2021 01:20
nrwl/nx chips
import { readFile, writeFileSync } from 'fs';
(async () => {
const nxJson: { [id: string]: object } = JSON.parse(
await new Promise((r, j) =>
readFile('./nx.json', 'utf-8', (e, data) => (e ? j(e) : r(data)))
)
);
const angularJson: { [id: string]: object } = JSON.parse(
await new Promise((r, j) =>

JavaScript Robotics Advent Calendar 2016 13日目

WebGPIOのPolyfillを実装してみて

こんにちは、 JavaScript Robotics Advent Calendar 2016 13日目の記事です。

趣味でWebGPIO/I2Cのpolyfillを実装し、実際にいろいろな人々に使ってもらいフィードバックを受けての感想と今後についてつらつらと書きたいと思います。

WebGPIO WebI2Cってなぁに?

@MSakamaki
MSakamaki / README.md
Last active April 23, 2016 03:25
MONAD

モナド則

  1. bind(unit(x), f) ≡ f(x)
  2. bind(m, unit) ≡ m
  3. bind(bind(m, f), g) ≡ bind(m, x ⇒ bind(f(x), g))

JavaScript Primise Monado

@MSakamaki
MSakamaki / IPAddress.md
Last active November 15, 2016 02:29
javascript ecmascript typescript
/** IPアドレス */
export interface IIPAddress {
  /** 第1オクテット */
  octet1: number,
  /** 第2オクテット */
  octet2: number,
@MSakamaki
MSakamaki / README.md
Last active April 5, 2016 07:16
JSPM MEMO

systemjsのcdn

インストール方法まわり

# rxjs ver 5 install
@MSakamaki
MSakamaki / README.md
Last active August 7, 2016 08:07
RxJS
@MSakamaki
MSakamaki / mockUtil.js
Last active February 3, 2016 12:25
node express Mock Utility
(function() {
global.MockDB = global.MockDB || new Map();
/**
* @example setting ovserve function
* global.MockOvserve.observe('ovserver_name', function(updateJson){
* stateCtrl.setJsonData(updateJson);
* });
*
* @example nofify method (parameter single only)