Skip to content

Instantly share code, notes, and snippets.

View caesar0301's full-sized avatar

陈夏明 caesar0301

View GitHub Profile

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@caesar0301
caesar0301 / build-gcc.sh
Created May 10, 2022 15:08 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install
@caesar0301
caesar0301 / plugin.py
Created February 23, 2017 08:54 — forked from will-hart/plugin.py
A simple python plugin system using a custom metaclass
# a simple Python plugin loading system
# see http://stackoverflow.com/questions/14510286/plugin-architecture-plugin-manager-vs-inspecting-from-plugins-import
class PluginMount(type):
"""
A plugin mount point derived from:
http://martyalchin.com/2008/jan/10/simple-plugin-framework/
Acts as a metaclass which creates anything inheriting from Plugin
"""
@caesar0301
caesar0301 / springer-free-maths-books.md
Created January 5, 2016 02:07 — forked from bishboria/springer-free-maths-books.md
Springer made a bunch of books available for free, these were the direct links