Skip to content

Instantly share code, notes, and snippets.

View liginity's full-sized avatar

liginity liginity

  • China
View GitHub Profile
@andrewseidl
andrewseidl / Clang-format Comparison.md
Last active April 10, 2024 04:10
Clang-format style comparison

This is a comparison of the different formatting styles including with clang-format.

Generated via:

styles=( LLVM Google Chromium Mozilla WebKit )
for style in $styles
do
  clang-format -style=$style ChLcpIterativeAPGD.h > ChLcpIterativeAPGD.$style.h

done

@klmr
klmr / Makefile
Last active July 8, 2024 13:15
Self-documenting makefiles
# Example makefile with some dummy rules
.PHONY: all
## Make ALL the things; this includes: building the target, testing it, and
## deploying to server.
all: test deploy
.PHONY: build
# No documentation; target will be omitted from help display
build:
@waynema02
waynema02 / unzip-gbk.py
Created January 5, 2018 03:46
Unzip the zip file encoded by gbk. ref: https://superuser.com/a/1202386
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# unzip-gbk.py
import os
import sys
import zipfile
import argparse
parser = argparse.ArgumentParser()