I hereby claim:
- I am tejacques on github.
- I am tejacques (https://keybase.io/tejacques) on keybase.
- I have a public key whose fingerprint is 8D52 2AF4 F797 A946 BD36 FA92 5498 9516 13E3 FAC8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ; (function (global, define) { define('module-name', function (require, exports, module) { | |
| // CommonJS style code here | |
| /*! | |
| * UMD/AMD/Global context Module Loader wrapper | |
| * based off https://gist.github.com/tejacques/202a8f2d198ddd54a409 | |
| * | |
| * This wrapper will try to use a module loader with the | |
| * following priority: | |
| * |
| /* Idea for allowing async-style functions in vanilla JS | |
| * This transforms a function which uses await into a function | |
| * which returns an ES6-style promise | |
| * | |
| * eval has the property of running the string of javascript | |
| * with the same closure scope chain as the method it is called | |
| * from, which is why it is necessary to call eval on the output | |
| * of the async function, which returns a string representing | |
| * the transformed function. | |
| */ |
| namespace System.Linq | |
| { | |
| public static class ExceptLastLinq | |
| { | |
| public static IEnumerable<T> ExceptLast<T>( | |
| this IEnumerable<T> source) | |
| { | |
| if (source == null) | |
| throw new ArgumentNullException("source"); |
| public static class Extensions | |
| { | |
| public static async Task ForEachAsync<T, U>(this IEnumerable<T> collection, Func<T, Task<U>> body, IObserver<U> observer = null) | |
| { | |
| foreach (var item in collection) | |
| { | |
| var res = await body(item); | |
| if (null != observer) | |
| { | |
| observer.OnNext(res); |
| using ServiceStack.Text; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using NUnit.Framework; | |
| using AsyncBridge; | |
| using System.Diagnostics; | |
| namespace AsyncTests |
| # .bashrc | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) |