Skip to content

Instantly share code, notes, and snippets.

/**
* Demo RN 0.61 app with accessibility actions.
* - Add extra content when TalkBack control activated by TalkBack.
*
* @format
* @flow
*/
import React from 'react';
import {useState} from 'react';
class HashRace
def initialize
@clients = {}
50.times {add_client}
end
def call
@mutex = Mutex.new
class HashRace
def initialize
@clients = {}
50.times {add_client}
end
def call
Thread.new do
purge

#notes: simplediff and jsdiff for roundtrip-test.js

background

We're using jsdiff in roundtrip-test.js now, and (because of this bug) are deciding whether to switch to another diffing library such as simplediff.

input/output differences

notes on what we'd have to change if we switched to simplediff:

output

  • jsdiff returns an array of "change objects," objects with keys 'value', 'added', and 'removed'. The value of 'value' is a string, and the values of 'added', 'removed' are either true or undefined. simplediff returns an array of pairs whose first element is "=", "+" or "-" and whose second element is a string (unchanged, added, removed, respectively).
@bebebebebe
bebebebebe / index-untemplated.html
Created January 20, 2014 03:27
projects page before templating
<!DOCTYPE html>
<head>
<script src='resources/jquery-min.js'></script>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src='interactions.js'></script>
<title>Projects</title>
</head>
<body>
<div id='heading'>Projects</div>