国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
package tinuURL | |
import ( | |
"crypto/md5" | |
"fmt" | |
"time" | |
"github.com/google/uuid" | |
"github.com/jxskiss/base62" | |
) |
using System; | |
using System.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
Sub Highlight(Phrase As String) | |
Application.ScreenUpdating = False | |
With ActiveDocument | |
With .Range | |
With .Find | |
.ClearFormatting | |
.replacement.ClearFormatting | |
.Format = False | |
.Forward = True | |
.Wrap = wdFindStop |
; An idea for using the heated bed of a 3D printer as a filament dryer. | |
; Adds GCODE command: START_DRYER TIME=T TEMPERATURE=C | |
; (T is time in seconds, C is bed temperature in Celsuis) | |
; To stop drying early, use STOP_DRYER. | |
; Also defined some utility macros: DRY_PLA, DRY_PETG and DRY_ABS. | |
; Edit these with your own preferred defaults. | |
[gcode_macro START_DRYER] | |
description: Start the heated bed filament dryer. | |
gcode: |
/** | |
* Cross-browser support for caretPositionFromPoint. | |
* This returns a `CaretPosition` like object instead | |
* of a CaretPosition, since we can't create it for | |
* browsers that don't support this API. | |
*/ | |
function caretPositionFromPoint(x: number, y: number): { | |
offsetNode: Node; | |
offset: number; | |
getClientRect(): ClientRect | DOMRect; |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).