start new:
tmux
start new with session name:
tmux new -s myname
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| global !p | |
| def complete(t, opts): | |
| if t: | |
| opts = [o[len(t):] for o in opts if o.startswith(t)] | |
| if len(opts) == 1: | |
| return opts[0] | |
| return "(" + "|".join(opts) + ")" | |
| endglobal | |
| # snippt option b means only enable at begin of line |
| using Microsoft.AspNetCore.Routing.Template; | |
| using Microsoft.AspNetCore.Routing; | |
| using System.Text.Encodings.Web; | |
| using Microsoft.Extensions.ObjectPool; | |
| using Microsoft.AspNetCore.Routing.Internal; | |
| namespace chat | |
| { | |
| public class UrlBuilder | |
| { | |
| public static string BuildUri(string routeTemplate, RouteValueDictionary values ){ |
| namespace DEMon | |
| { | |
| /// <summary> | |
| /// Abstract class to faciliate the construction of processors that follow producer-consumer pattern. | |
| /// Example: typical invokation sequence | |
| /// ProducerConsumer.Init() | |
| /// ProducerConsumer.Add(work_item) | |
| /// ProducerConsumer.CompleteAndWait(); | |
| /// </summary> | |
| /// <typeparam name="T">type of the work item</typeparam> |
| @ECHO OFF | |
| REM turn this on to enable loop-scope variable expansion (at exec time, rather than parse-time) | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| SET me=%~n0 | |
| SET parent=%~dp0 | |
| ::======= HEADER END ===== | |
| REM gotcha: to set variables whose value contain spaces | |
| SET 'V=I HAVE SPACE' | |
| ECHO %V% |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| /// <summary> | |
| /// An ASCII progress bar | |
| /// </summary> | |
| public class ProgressBar : IDisposable, IProgress<double> { | |
| private const int blockCount = 10; | |
| private readonly TimeSpan animationInterval = TimeSpan.FromSeconds(1.0 / 8); |
| using System; | |
| using System.Threading; | |
| using Utility; | |
| /// <summary> | |
| /// Encapsulates a mechanism for executing an action continuously with a specified interval. | |
| /// </summary> | |
| /// <remarks> | |
| /// Large portions copied from a class of the same name made by Markus. | |
| /// </remarks> |