ๅฝๅ ไป Docker Hub ๆๅ้ๅๆๆถไผ้ๅฐๅฐ้พ๏ผๆญคๆถๅฏไปฅ้ ็ฝฎ้ๅๅ ้ๅจใ
Dockerized ๅฎ่ทต https://github.com/y0ngb1n/dockerized
ๅ่ Docker daemon ้ ็ฝฎไปฃ็
| public class ActorContainerNext : WindsorContainer | |
| { | |
| private readonly ConcurrentDictionary<Type, PID> singletons = new ConcurrentDictionary<Type, PID>(); | |
| public ActorContainerNext(IWindsorContainer parent = null) | |
| { | |
| Parent = parent; | |
| Register(ContainerComponents().ToArray()); | |
| } |
| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| "sync" | |
| "time" | |
| "github.com/AsynkronIT/protoactor-go/actor" | |
| ) |
| public class LiteDbContext : ILiteDbContext | |
| { | |
| public LiteDatabase Database { get; } | |
| public LiteDbContext(IOptions<LiteDbOptions> options) | |
| { | |
| Database = new LiteDatabase(options.Value.DatabaseLocation); | |
| } | |
| } |
| using System; | |
| using System.Threading.Tasks; | |
| using Akka.Actor; | |
| using Akka.Configuration; | |
| namespace AkkaDemos | |
| { | |
| public interface IGreeter | |
| { | |
| Task<string> Greet(IGreeter who); |
| # ========================================================== | |
| # NPM | |
| # ========================================================== | |
| npm set registry https://registry.npmmirror.com # ๆณจๅๆจกๅ้ๅ | |
| npm set disturl https://npmmirror.com/mirrors/node # node-gyp ็ผ่ฏไพ่ต็ node ๆบ็ ้ๅ | |
| ## ไปฅไธ้ๆฉๆทปๅ | |
| npm set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass # node-sass ไบ่ฟๅถๅ ้ๅ | |
| npm set electron_mirror https://registry.npmmirror.com/mirrors/electron/ # electron ไบ่ฟๅถๅ ้ๅ |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Http; | |
| using TodoApi.Services; | |
| namespace TodoApi.Middlewares | |
| { | |
| public class AuthzMiddleware | |
| { | |
| private readonly RequestDelegate _next; |
| using Akka.Streams; | |
| using Akka.Streams.Stage; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Demo | |
| { | |
| sealed class PreFetch<T> : GraphStage<SourceShape<T>> |
ๅฝๅ ไป Docker Hub ๆๅ้ๅๆๆถไผ้ๅฐๅฐ้พ๏ผๆญคๆถๅฏไปฅ้ ็ฝฎ้ๅๅ ้ๅจใ
Dockerized ๅฎ่ทต https://github.com/y0ngb1n/dockerized
ๅ่ Docker daemon ้ ็ฝฎไปฃ็
| public class UploadUtilityHelper | |
| { | |
| private readonly string bucketName = ConfigurationManager.AppSettings["BucketName"]; | |
| private static readonly RegionEndpoint bucketRegion = RegionEndpoint.USEast1; | |
| public string UploadChunk(string fileName, string uploadId, int chunkIndex, int chunkMax, Stream stream, string prevETags) | |
| { | |
| var response = ""; | |
| try |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| -- Module: utf8_filenames | |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| -- Filename: utf8_filenames.lua | |
| -- Version: 2019-07-13 | |
| -- License: MIT (see at the end of this file) | |
| -- This module modifies standard Lua functions so that they work with UTF-8 filenames on Windows: | |
| -- io.open | |
| -- io.popen |