Skip to content

Instantly share code, notes, and snippets.

Laurence Dougal Myers laurence-myers

Block or report user

Report or block laurence-myers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
laurence-myers / bulkdecaf.bat
Created Aug 22, 2018
Bulk decaffeinate batch script for Windows
View bulkdecaf.bat
FOR /f "delims=" %%i IN ('npm bin') DO SET DECAF=%%i
SET DECAF="%DECAF%\decaffeinate"
echo %decaf%
cd app
for /R %%f in (*.coffee) do (
echo "%%f"
%decaf% %%f
cd ..
laurence-myers / example.ts
Created Apr 10, 2018
Result: success/failure type union
View example.ts
interface IFoo {
bar : string;
function validateSomething(obj : IFoo) : Result<string, IFoo> {
if ( === 0) {
return resultFailure("You must provide at least one object");
} else {
return resultSuccess(obj);
You can’t perform that action at this time.