Skip to content

Instantly share code, notes, and snippets.

View mohaalak's full-sized avatar
💭
λ

Mohammad Hadi Aliakbar mohaalak

💭
λ
View GitHub Profile
@mohaalak
mohaalak / Main.purs
Last active December 29, 2021 06:53
player and enemy over abstraction command creation
module Main where
import Prelude
import Data.Symbol (class IsSymbol)
import Prim.Row (class Cons)
import Type.Proxy (Proxy(..))
import Unsafe.Coerce (unsafeCoerce)
type PlayerRow
@mohaalak
mohaalak / AsyncSockets.fs
Created February 11, 2021 14:36 — forked from t0yv0/AsyncSockets.fs
Asynchronous socket programming with F# async.
open System.Net.Sockets
type A = System.Net.Sockets.SocketAsyncEventArgs
type B = System.ArraySegment<byte>
exception SocketIssue of SocketError with
override this.ToString() =
string this.Data0
/// Wraps the Socket.xxxAsync logic into F# async logic.
@mohaalak
mohaalak / caps_lock_to_ctrl_escape.json
Last active April 21, 2020 09:07
Caps Lock to Ctrl/Escape- KarabinerElements
{
"title": "Caps Lock To Ctrl/Escape",
"author": "Hadi Aliakbar(mohaalak.com)",
"homepage": "https://gist.github.com/mohaalak/c2ae7664d2272a449422b9c935fff8a0",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/mohaalak/c2ae7664d2272a449422b9c935fff8a0/raw/bf99a2bb384089fc8a7308caf733d9362b1e3762/caps_lock_to_ctrl_escape.json",
"rules": [
{
"description": "Caps Lock to Ctrl/Escape",
"manipulators": [
{