Skip to content

Instantly share code, notes, and snippets.

Doing new things

Wil Gieseler wilg

Doing new things
View GitHub Profile
View indiana_county_topojson_v3.topo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
wilg / index.js
Last active Oct 31, 2018 — forked from tommoor/index.js
requirebin sketch
View index.js
const React = require('react');
const ReactDOM = require ('react-dom');
const Render = require('react-emoji-render');
// try swapping the commented lines below and hit "Run Code" in the top right
// to see another rendering style!
const Emoji = Render.Emojione;
//const Emoji = Render.Twemoji;
wilg / parallel_map.swift
Last active May 3, 2022 — forked from DougGregor/parallel_map.swift
Swift async/await implementation of a parallel map
View parallel_map.swift
import Foundation
extension Collection {
func parallelMap<T>(
parallelism requestedParallelism: Int? = nil,
_ transform: @escaping (Element) async throws -> T
) async rethrows -> [T] {
let defaultParallelism = 2
let parallelism = requestedParallelism ?? defaultParallelism