Skip to content

Instantly share code, notes, and snippets.

//
// BikeRRUITests.swift
// BikeRRUITests
//
// Created by Oliver Epper on 14.08.21.
//
// swiftlint:disable all
import XCTest
/*
* This is all Eric Nieblers work, see: https://youtu.be/h-ExnuD6jms
*/
#include <iostream>
#include <thread>
using namespace std;
auto new_thread() {
return [](auto p) {
#include <thread>
auto async_work() {
return [](auto p) {
std::thread { [p=std::move(p)]() mutable {
std::exception_ptr ep;
try {
throw std::runtime_error("Test Error");
} catch (...) {
ep = std::current_exception();
/*
* This is all Eric Nieblers work, see: https://youtu.be/h-ExnuD6jms
*/
#include <thread>
#include <vector>
auto new_thread() {
return [](auto p) {
std::thread { [p=std::move(p)]() mutable {
/*
* This is all Eric Nieblers work, see: https://youtu.be/h-ExnuD6jms
*/
import Foundation
protocol Receiver<T> {
associatedtype T
func setValue(_ value: T)
/*
* This is all Eric Nieblers work, see: https://youtu.be/h-ExnuD6jms
*/
import Foundation
protocol Initializable {
init()
}
@oliverepper
oliverepper / Main.hs
Created October 7, 2024 06:14
ListViewDemo
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
module Main where
import qualified GI.Gtk as Gtk
import qualified GI.Gio as Gio
import qualified GI.GLib as GLib
import qualified GI.GObject as GObject
import Data.GI.Base
import System.Exit