Skip to content

Instantly share code, notes, and snippets.

View ckagiri's full-sized avatar
🎯
Focusing

Charles Kagiri ckagiri

🎯
Focusing
View GitHub Profile
@ckagiri
ckagiri / HPFFP.md
Created December 8, 2021 10:21 — forked from DadgadCafe/HPFFP.md
Haskell Programming From First Principles

HASKELL PROGRAMMING FROM FIRST PRINCIPLES

CHAPTER1. ALL YOU NEED IS LAMBDA

1.1 All You Need is Lambda

lambda calculus:

computation model, 1930s, Alonzo Church, formalizing a method, Turing machines

@ckagiri
ckagiri / generate-ssh-key.sh
Created October 3, 2020 17:34 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa

Standardized Ladder of Functional Programming

The LambdaConf Ladder of Functional Programming (LOFP) is a standardized progression of different concepts and skills that developers must master on their journey to becoming expert-level functional programmers. LOFP can be used to rank workshops, talks, presentations, books, and courseware, so that aspiring functional programmers have a better understanding of what material is appropriate for them given their current experience.

Fire Keramik

Concepts

  • Immutable Data
  • Second-order Functions
@ckagiri
ckagiri / haskellpatterns.md
Created August 20, 2019 14:27
haskell patterns

Function-related

Function composition

Memoization

Defunctionalisation

Difference Encoding

@ckagiri
ckagiri / start_stop_memcached_script.sh
Created August 13, 2019 20:41 — forked from tinogomes/start_stop_memcached_script.sh
Script sample to start/stop for linux with nohup
#!/bin/bash
#
BASE=/tmp
PID=$BASE/app.pid
LOG=$BASE/app.log
ERROR=$BASE/app-error.log
PORT=11211
LISTEN_IP='0.0.0.0'
MEM_SIZE=4
@ckagiri
ckagiri / start_stop_memcached_script.sh
Created August 13, 2019 20:40 — forked from tinogomes/start_stop_memcached_script.sh
Script sample to start/stop for linux with nohup
#!/bin/bash
#
BASE=/tmp
PID=$BASE/app.pid
LOG=$BASE/app.log
ERROR=$BASE/app-error.log
PORT=11211
LISTEN_IP='0.0.0.0'
MEM_SIZE=4
@ckagiri
ckagiri / AllUnderscoreMethods.js
Created June 18, 2019 12:35 — forked from alexhawkins/AllUnderscoreMethods.js
Basic Implementation of 'most' Underscore Methods from Scratch
var _ = {};
/*********IDENTITY**********/
_.identity = function(val) {
return val;
};
/*********FIRST**********/
_.first = function(array, n) {

Advanced React by React Training

Personal notes while working through Advanced React: https://courses.reacttraining.com/p/advanced-react

Granted this is a contrived example, but it's still something I took notice to: in those "Advanced React" videos I've been watching, Ryan Florence codes very slowly, and does not make one quick change and jump back to the browser to see what changed.

He stops and thinks. He asks himself (or the viewer) questions. He wonders what

@ckagiri
ckagiri / HeapSort.js
Created April 15, 2019 08:07 — forked from theflofly/HeapSort.js
JavaScript implementation of the heap sort algorithm as described here : http://staff.ustc.edu.cn/~csli/graduate/algorithms/book6/chap07.htm
"use strict";
class HeapSort {
constructor(inputArray) {
this.inputArray = inputArray;
this.heapSize = inputArray.length;
}
main() {
@ckagiri
ckagiri / composing.software.md
Created January 31, 2019 10:32 — forked from frankfaustino/composing.software.md
Eric Elliot: Composing Software Series

Eric Elliott: Composing Software