Skip to content

Instantly share code, notes, and snippets.

@stken2050
stken2050 / TC39mail.md
Created Sep 26, 2021
Mail from TC39 leadership
View TC39mail.md

Hi Ken,

I'm writing on behalf of TC39 leadership. Leadership have reviewed your recent issues and comments on the "How We Work" and "proposal-pipeline-operator" repositories.

These threads have highlighted a few issues for us to address with you: We find that you did not make use of the official paths that were shared with you to report the conflict you had with Tab. Instead, you posted an inflammatory issue on the How We Work repo and used other repositories to raise visibility for the situation you were helping to escalate, rather than resolve productively. We find that you did not adhere to clear requests by the maintainers to scope your comments and feedback to the matters at hand. As a community member, you are welcome to share your own opinions and thoughts, and to do so in TC39 spaces; however your rights to these spaces are limited as a non-delegate and are always subject to our policies (such as the CoC Policy). Further, even in a general open source project, you do not have a right to the repo

View TS JS F#style pipeline operator is monad.
const identity = a => a;
const customOperator = op => f => set =>
Object.defineProperty(set, op, {
value: function (a) {
return f(a)(this);
}
});//returns new set/object
Function.prototype |>
@stken2050
stken2050 / index.html
Created Apr 5, 2019
unlimitedjs + MDC login
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- Required styles for MDC Web -->
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
<style type="text/css">
View cjs-esm.js
{
//Issue:
//not compatible with TypeScript Types
// "@types/react"
// "@types/react-dom"
//TypeScript
// import * as React from "react";
// import * as ReactDOM from "react-dom";
View primitive createObject
const typedPrimitive = (I: Function) => (i: undefined) => {
const derived = Object(i);
Object.setPrototypeOf(derived, Object(i));
const typeProperty = {
enumerable: false,
configurable: false,
writable: false,
value: I
View Monoid implementation JavaScript
{
const equalJSON = a => b => JSON.stringify(a) === JSON.stringify(b);
const logEq = a => b => {
const result = equalJSON(a)(b);
console.log(result);
return result;
};
@stken2050
stken2050 / blogger-bootstrap.xml
Last active Jun 14, 2018
blogger-bootstrap.xml
View blogger-bootstrap.xml
<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
<b:if cond='data:blog.isMobile'>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>
<b:include data='blog' name='all-head-content'/>
View javascript monad
const isFunction = (m) => (typeof m === "function");
const isHigherOrder = (f) => isFunction(f("foo"));
const compose = (f, g) => (x => g(f(x)));
const isMonad = (m) => !(typeof m.val === "undefined");
const M = (m = []) => {
const f = m1 => {
const m1S = isMonad(m1) ? m1 : M(m1);
return !isFunction(m)
? M(m1S.val(m)) // a-f chain
View react-tutorial2016
#React 入門 2016 あるいは statelessさらにprop不要で関数型・宣言型的にコーディングする手法
#React(0.14+), JavaScript(ES6)は変化が激しすぎるのでReact入門記事を全面改訂します
当ブログで昨年2015年4月にUPしたReact解説記事(2つ)
- [React (.js Facebook)解説 関数型プログラミングに目覚めた! IQ145の女子高生の先輩から受けた特訓5日間 サポート記事 静的HTML編](http://kenokabe-techwriting.blogspot.jp/2015/04/react-js-facebook-iq145-html.html)
View SolderMaskEdit_Kicad.txt
(module Pin_Arrays:pin_array_2x05 (layer F.Cu) (tedit 55D82C17)
(descr "Double rangee de contacts 2 x 5 pins")
(tags CONN)
(fp_text reference P1 (at 0.635 -3.81) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value CONN_01X10 (at 0 -3.81) (layer F.SilkS) hide
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -6.35 -2.54) (end 6.35 -2.54) (layer F.SilkS) (width 0.15))