(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.
(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.
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| // 原始程式來源: http://practicalcryptography.com/ciphers/enigma-cipher/ 網頁內的 javascript 程式碼 | |
| var c = console; | |
| var plaintext = 'ABCDEF'; | |
| c.log('>> plaintext2 : '+plaintext); | |
| var ciphertext = Encrypt(plaintext, 'AAA', 'AAA', '123', 'POMLIUKJNHYTGBVFREDC'); | |
| c.log('>> ciphertext : '+ciphertext); | |
| var plaintext2 = Encrypt(ciphertext, 'AAA', 'AAA', '123', 'POMLIUKJNHYTGBVFREDC'); | |
| c.log('>> plaintext2 : '+plaintext); |
| package enum_example | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| ) | |
| // TaskState represents the state of task, moving through Created, Running then Finished or Errorred | |
| type TaskState int |
| public class MyDbContext : DbContext | |
| { | |
| private ITenantIdLocator tenantIdLocator; | |
| public MyDbContext(ITenantIdLocator tenantIdLocator) | |
| { | |
| if (tenantIdLocator == null) throw new ArgumentNullException(nameof(tenantIdLocator)); | |
| this.tenantId = tenantIdLocator.GetTenantId(); | |
| } | |