https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/
I've created to test it, but I'm confused by the result. https://animated-caribou.glitch.me/
- Chrome: only display the cookie value with SameSite=None in iframe.
const topologicalSort = (tree) => { | |
const answers = []; | |
const entryTimesMap = new Map(); | |
// calc entry times | |
tree.forEach(node => { | |
if (!entryTimesMap.has(node.val)) { | |
entryTimesMap.set(node.val, 0); | |
} | |
node.deps.forEach(dep => { |
https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/
I've created to test it, but I'm confused by the result. https://animated-caribou.glitch.me/
/** | |
* @providesModule ReactVoice | |
*/ | |
'use strict'; | |
const {spawnSync} = require('child_process'); | |
const ReactDOMFrameScheduling = require('ReactDOMFrameScheduling'); | |
const ReactFiberReconciler = require('ReactFiberReconciler'); | |
const sideEffect = (method, text) => spawnSync('say', ['-v', method, text]); |
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
import type { ReactElement } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import TransitionGroup from './TransitionGroup'; | |
import type { Props as TransitionProps } from './Transition'; | |
type Props = Omit<TransitionProps, 'children'> & { | |
children: [ReactElement<TransitionProps>, ReactElement<TransitionProps>]; | |
}; |
#!perl | |
use 5.010; | |
use utf8; | |
use strict; | |
use warnings; | |
use Cwd qw/realpath/; | |
use Encode; | |
use File::Temp qw/tempdir/; |
import React from 'react'; | |
const Static = Component => class extends React.Component { | |
shouldComponentUpdate() { | |
return false; | |
} | |
render() { | |
return <Component {...this.props} />; | |
} | |
}; |
『Engineers in VOYAGE ― 事業をエンジニアリングする技術者たち』
https://www.lambdanote.com/collections/engineers-in-voyage
以前に技術力評価会に外部評価者として参加させて頂いた縁もあり、本を頂いたので感想を書いてみます。
まず最初に思ったので、こんな本読んだことないなという点です。 企業が自社の技術について書いている本は過去にいくつか読んだことはありますが、そういった本は技術にフォーカスされているのに対して、この本は事業にフォーカスが当てられており、如何に事業をエンジニアリングで発展させていくかという点が中心になっています。まさに本のタイトルの通りですね。
const Foo = () => { | |
const someRef = React.useRef<{ someSetupMethod: () => void; someCleanupMethod: () => void }>(null) | |
React.useEffect(() => { | |
if (someRef.current === null) return | |
someRef.current.someSetupMethod() | |
return () => { | |
if (someRef.current === null) return | |
// react-hooks/exhaustive-deps warns this | |
someRef.current.someCleanupMethod() | |
} |
const http = require("http"); | |
const { parse } = require("basic-auth"); | |
const { PROXY_USERNAME, PROXY_PASSWORD } = process.env; | |
const PROXY_PORT = process.env.PROXY_PORT || 8000; | |
const check = (credentials) => { | |
console.log(credentials); | |
return ( | |
credentials && | |
credentials.name === PROXY_USERNAME && |