https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
| gRPC Code | HTTP Status Code |
|---|---|
| OK = 0 | 200 OK |
| CANCELLED = 1 | 499 Client Closed Request |
| UNKNOWN = 2 | 500 Internal Server Error |
| INVALID_ARGUMENT = 3 | 400 Bad Request |
https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
| gRPC Code | HTTP Status Code |
|---|---|
| OK = 0 | 200 OK |
| CANCELLED = 1 | 499 Client Closed Request |
| UNKNOWN = 2 | 500 Internal Server Error |
| INVALID_ARGUMENT = 3 | 400 Bad Request |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/spf13/cobra" | |
| "github.com/spf13/viper" | |
| ) | |
| func main() { |
| ○ Unicode: | |
| § Unicode comprises over one million characters divided in 17 different planes (contiguous groups of characters): BMP are mostly everyday characters, Astral, etc. | |
| § Astral characters include emojis but they aren't well supported because they are considered two characters, so regexes that use them may often work in unexpected ways. | |
| § Use the /u flag in ES6 to overcome this. Use it with caution. | |
| ○ El codigo es dato | |
| § Harvard architecutre: code + data in different places | |
| § Von Neuman architecture: code + data in the same place (it won) | |
| ○ Ethereum: | |
| § Ether is the cryptocurrency | |
| § Blockchain: records that store the transactions |
| // takes a {} object and returns a FormData object | |
| var objectToFormData = function(obj, form, namespace) { | |
| var fd = form || new FormData(); | |
| var formKey; | |
| for(var property in obj) { | |
| if(obj.hasOwnProperty(property)) { | |
| if(namespace) { |
| Puts on glasses: | |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) | |
| Takes off glasses ("mother of god..."): | |
| (⌐■_■) | |
| ( •_•)>⌐■-■ |
| param($global:RestartRequired=0, | |
| $global:MoreUpdates=0, | |
| $global:MaxCycles=10) | |
| function Check-ContinueRestartOrEnd() { | |
| $RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
| $RegistryEntry = "InstallWindowsUpdates" | |
| switch ($global:RestartRequired) { | |
| 0 { | |
| $prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |