Skip to content

Instantly share code, notes, and snippets.

View kleinlennart's full-sized avatar
💭

Lennart Klein kleinlennart

💭
  • United Nations | Executive Office of the Secretary-General (EOSG)
  • New York
  • LinkedIn in/lennart-klein
View GitHub Profile
@atenni
atenni / README.md
Last active August 13, 2025 10:45
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@hofmannsven
hofmannsven / README.md
Last active August 23, 2025 00:37
Git CLI Cheatsheet
@sloria
sloria / bobp-python.md
Last active August 17, 2025 16:14
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@gitaarik
gitaarik / git_submodules.md
Last active August 22, 2025 21:22
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@parmentf
parmentf / GitCommitEmoji.md
Last active August 20, 2025 08:37
Git Commit message Emoji
@mikemimik
mikemimik / main.dart
Last active August 3, 2022 04:21
Flutter: Custom theme data
import 'package:flutter/material.dart';
import 'theme.dart' as Theme;
void main() {
runApp(
new MaterialApp(
title: 'CompanyApp',
color: Theme.CompanyColors.blue[500],
theme: Theme.CompanyThemeData,
home: new Scaffold(

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh
@kleinlennart
kleinlennart / home.dart
Last active May 24, 2018 17:37
Default Flutter App Setup
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => new _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
@kleinlennart
kleinlennart / Shortcuts.md
Last active May 24, 2018 19:20
Shortcuts Cheatsheet for different Programms

Shortcuts Cheatsheet (MacOS)

A collection of shortcuts I find useful

Android Studio

Shortcut Function
fn + F1 Shows documentation
Shift + alt + S Reformat Code with dartfmt
Cmd + S Save File and Flutter Hot Reload
Cmd + S + Shift Flutter Full Reload
@kleinlennart
kleinlennart / acronyms.md
Last active June 14, 2018 16:22
Programming Abbreviations
Akcronym Meaning
API Application Programming Interface
SDK Software Development Kit
IDE Integrated Development Environment
SQL Structured Query Language (SEQUEL - Structured English Query Language)
CSS Cascading Style Sheets
HTML Hypertext Markup Language
CMS Content Management System (Webpage)
DOM Document Object Model