This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
async void Main() | |
{ | |
Console.WriteLine ("Before Using"); | |
await Async.Using(new Test(), t => | |
{ | |
Console.WriteLine ("In Using body"); | |
throw new Exception("Oops"); | |
}); | |
Console.WriteLine ("After Using"); | |
} |
This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
# Authored my Maxfan http://github.com/Maxfan-zone http://maxfan.org | |
# This is used to convert tikz code into svg file and load in you jekyll site | |
# | |
# Install: | |
# | |
# 1. Copy this file in your _plugins/ directory. You can customize it, of course. | |
# 2. Make sure texlive and pdf2svg are installed on your computer. | |
# 3. Set path to pdf2svg in _config.yml in "pdf2svg" variable | |
# | |
# Input: |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.Text; | |
namespace SourceGeneratorSamples | |
{ | |
[Generator] | |
public class HelloWorldGenerator : ISourceGenerator |
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] | |
$ToastTitle, | |
[string] | |
[parameter(ValueFromPipeline)] | |
$ToastText | |
) |
This is an up-to-date guide on running Chromium in Vercel serverless functions in 2022. What you will read below is the result of two days of research, debugging, 100+ failed deployments, and a little bit of stress.
Use chrome-aws-lambda that comes with Chromium pre-configured to run in serverless, and puppeteer-core
due to the smaller size of Chromium distributive.
import org.assertj.core.api.Assertions.assertThat | |
import org.junit.jupiter.api.Test | |
import kotlin.reflect.KClass | |
import kotlin.reflect.full.isSuperclassOf | |
/* | |
Marker interface. Anything that's a message can be sent across the wire. | |
*/ | |
interface Message |
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.