Skip to content

Instantly share code, notes, and snippets.

View GitBubble's full-sized avatar

Arthur GitBubble

View GitHub Profile
@GitBubble
GitBubble / Base.cpp
Created April 23, 2021 09:12 — forked from sacko87/Base.cpp
Factory Pattern in C++ with templates (using the confusingly recurring template and registry patterns)
#include "Base.h"
Base::Base() :
IsRegistered_(false)
{ }
Base::Base(bool isRegistered) :
IsRegistered_(isRegistered)
{ }
msys2 vs msys vs msysgit
MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin
Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows.
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation.
MinGW provides headers and libraries so that GCC (a compiler suite,
not just a "unix/linux compiler") can be built and used against the Windows C runtime.
@GitBubble
GitBubble / iterm2-solarized.md
Created March 1, 2020 07:42 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@GitBubble
GitBubble / readme.md
Created January 8, 2019 13:07 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@GitBubble
GitBubble / gist:d03cc67821281a5397a985d47926eca7
Last active January 8, 2019 13:06
Markdown cheat sheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@GitBubble
GitBubble / boost-backporting-guide.md
Created November 17, 2018 12:01 — forked from springmeyer/boost-backporting-guide.md
How to backport recent Boost packages to older ubuntu distro's and build using personal PPA

Boost backporting

Goal here is to document the steps I took in May 2012 to get Boost 1.49 packages backported and working on Lucid, Maverick, Natty, Oneiric, and Precise.

TODO: look into using ubuntu-dev-tools and backportpackage -s [new_release] -d [old_release] -u [ppa] [package_name]

Install dev tools

sudo apt-get install debhelper devscripts dput git-core python pgpgpg

有了这个列表,程序员不愁没练手的小项目了

初衷

这个列表原本首发在伯乐在线的一篇译文:http://blog.jobbole.com/49762/。2016年9月21日,该文章推送到微信公众号 程序员的那些事 (ID: iProgrammer ) 后,@BleethNie 留言建议把这 120+ 练手小项目统一放在一个地方,同时其他人可以把自己完成项目提交合并到一起,相互参考学习。于是我们在 GitHub 创建了这个项目。后续会以超链的形式合并大家提交的成果到这个列表。欢迎 fork & star,并扩散给更多人。

下面列出 120 多个项目构思,根据主题分成了 10 个分类。

文本操作

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: