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.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!
Download the latest MSYS2 from this download page.
Install MSYS2 to, for example, C:\msys2
(make sure no space in path to avoid unwanted problems).
Optionally prettify the MSYS2 console mintty
with ~/.minttyrc
to make it more pleasing to eyes. Thanks to this awesome theme!
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
#!/bin/bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
#include "QrCode.hpp" // from https://github.com/nayuki/QR-Code-generator | |
#include "ImageUtils.h" // from Unreal Engine (4.24) | |
/// <summary>Generates a QR code texture from a string.</summary> | |
/// <param name="parent">UE parent (required)</param> | |
/// <param name="string">String to encode</param> | |
UTexture2D* UWebBuzzers::GenerateQrCode(UObject* parent, FString string) | |
{ | |
qrcodegen::QrCode qr = qrcodegen::QrCode::encodeText(TCHAR_TO_UTF8(*string), qrcodegen::QrCode::Ecc::LOW); |
Guide to Fixing LFS Tracking on Repos | |
Prereqs: | |
git version >= 2.3 | |
git-lfs version >= 2.3 | |
OSX: homebrew | |
OSX: coreutils - once you have homebrew installed, run > brew install coreutils | |
(note to self: use the fastest way, see bottom-ish of doc!) |