Skip to content

Instantly share code, notes, and snippets.

View srghma's full-sized avatar

Serhii Khoma srghma.github.io/how-life-was-created srghma

View GitHub Profile
@srghma
srghma / todo.md
Last active October 3, 2018 08:46
todo

haskell

https://stackoverflow.com/questions/42174785/multiple-io-effects-in-eff-or-other-ways-for-composable-effects

make 2 example apps using mtl and effects that asks password:

@srghma
srghma / setup_centos_instance.sh
Last active April 15, 2019 12:06 — forked from 0sc/aws-go+docker-setup.sh
Setup script for golang, docker and docker-compose on Amazon Linux AMI 2017.09.0 (HVM) on EC2
#!bin/sh
# Update installed packages and package cache
sudo yum update -y
# make sure in the home folder
cd ~/
# Golang installation

Keybase proof

I hereby claim:

  • I am srghma on github.
  • I am srghma (https://keybase.io/srghma) on keybase.
  • I have a public key ASD1MDtsbC5cqzbn5RevzNhsStSznnYts4jteE43idPIAwo

To claim this, I am signing this object:

```js
async function fetch(_ignoring) {
return {
user: {
username: "MyUsername"
}
}
}
async function fetchUserAndDoCalaculation() {
module GameLoopSpec where
import Protolude
import Cli.AbstractUtils
import Cli.GameLoop
import Cli.Monads
import Cli.Types
import Test.Hspec

I write commits with this linter https://github.com/srghma/linted-git-commit

Structure:

type: scope (e.g. page name) or noun -> scope (e.g. widget name) or noun -> verb (optional)

I use only 3 varians of "type":

  • feat: Adds a new feature.
@srghma
srghma / LICENSE
Last active May 22, 2020 08:21
This license applies to all public gists and my comments in https://gist.github.com/srghma
MIT License
Copyright (c) 2020 Serhii Khoma
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
<div class="hanzi" id="hanzi">{{Hanzi}}</div>
<br>
<div class="pinyin" id="pinyin">{{Pinyin}}</div>
<br>
{{English}}
<br>