Skip to content

Instantly share code, notes, and snippets.

Python Essentials

Python is an experiment in how much freedom programmers need - Guido

This document captures some of the core python language contructs that will help problem solving and writing concise code. We will cover looping, iterators, generators, comprehension, and some general patterns for programming simple problems. We will also ponder some of the most useful standard library classes and functions.

https://xkcd.com/353/

Things like modules, packages, async, threading, etc., are not covered.

@prabhakhar
prabhakhar / tmux-cheatsheet.markdown
Created February 5, 2023 06:15 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@prabhakhar
prabhakhar / vscode.settings
Created April 11, 2022 16:40
VS Code Settings with Gruvbox
{
"workbench.startupEditor": "newUntitledFile",
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"editor.fontFamily": "'Operator Mono Lig', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"go.useLanguageServer": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"editor.minimap.enabled": false,

Dedication for Moremi - Wole Soyinka

Moremi here has three distinct, yet intertwined meanings.

First, Moremi is the name of Wole Woyinka's daughter.

Secondly, Moremi is a game reserve in Botswana created to protect Africa's rich land and ecosystem, notably formed by the indigenous population.

Finally, Moremi is a Goddess in the Yoruba tradition.

#!/bin/bash
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
add-apt-repository "deb https://apt.kubernetes.io/ kubernetes-xenial main
apt-get update; apt-get install -y kubelet kubeadm kubectl;apt-mark hold kubelet kubeadm kubectl
PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '

Stanza 1-2:

In the first two stanzas of Okara’s monologue, the speaker addresses an European colonialist that laughs at African way of life

In your ears my song
is motor car misfiring
stopping with a choking cough;
and you laughed and laughed and laughed.
In your eyes my antenatal
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@prabhakhar
prabhakhar / springer-free-maths-books.md
Created December 28, 2015 19:23 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
wget
wget http://download.virtualbox.org/virtualbox/4.3.28/virtualbox-4.3_4.3.28-100309~Ubuntu~raring_amd64.deb