Skip to content

Instantly share code, notes, and snippets.

View sabriayes's full-sized avatar
🎯
Focusing

Sabri Ayeş sabriayes

🎯
Focusing
  • Naylalabs
  • Turkey
View GitHub Profile
@kayac-chang
kayac-chang / chain-or-else.ts
Created January 31, 2022 05:18
[learn FP with Kirby using `fp-ts`] TaskEither
/**
* chain and orElse
* ===
* sequential asynchronous processing can combined with chain and orElse
*/
import { pipe } from "fp-ts/lib/function";
import {
chain,
tryCatch,
@breiter
breiter / build-deploy.yml
Last active June 16, 2023 11:57
ECS Deploymnet GitHub Action template
# Replace <items-in-angle-brackets> to cofigure
name: Build <stage|production> container and deploy
on:
push:
branches: [ <stage|production> ]
env:
ECR_REPOSITORY: <repo-name>
AWS_REGION: us-east-1
ECS_CLUSTER: <custer-name>
@mark-bradshaw
mark-bradshaw / requireThroughWebpack.js
Created October 8, 2015 17:02
Use an in-memory webpack compiler to get specific files or file trees.
import _ from 'lodash';
import MemoryFileSystem from 'memory-fs';
import webpack from 'webpack';
import webpackConfig from '../../webpack.config';
// This function allows you to do an on-the-fly, in-memory webpack compile starting
// with whatever file entry point you want, and receive back the compiled object.
export default (entry, callback) => {