Shading using [SBT Assembly][assembly] plugin doesn't produce the correct jar structure
Inconsistent locale
Run these commands
export LC_ALL="en_US.UTF-8"
type ConsoleLogger struct { | |
next Logger | |
} | |
func (l *ConsoleLogger) Log(level LogLevel, text string) { | |
fmt.Printf("%s | %s\n", level, text) | |
if l.next != nil { | |
l.next.Log(level, text) | |
} | |
} |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release \ | |
vim | |
(kMDItemContentCreationDate >= $time.today(-30)) && ((kMDItemContentTypeTree = public.content) || (kMDItemContentTypeTree = "com.microsoft.*"cdw) || (kMDItemContentTypeTree = public.archive)) |
/// As of Dart 2.5, `enum` can still only support very simple use case. | |
/// To have a "rich enum" with custom value type and methods, we need | |
/// to use static class member. This is an example implementation. | |
void main() { | |
final s1 = 'done', s2 = 'waiting'; | |
final done = Enum.parse(Status.values, s1); | |
final waiting = Enum.parse(Status.values, s2); | |
print(done); |
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
var gulp = require('gulp'), | |
spawn = require('child_process').spawn, | |
node; | |
/** | |
* $ gulp server | |
* description: launch the server. If there's a server already running, kill it. |
{ | |
// Configure glob patterns for excluding files and folders. | |
"files.exclude": { | |
"**/.git": true, | |
"**/.DS_Store": true, | |
"**/*.cs.meta": true, | |
"**/node_modules": true | |
}, | |
"workbench.editor.showTabs": false, | |
"editor.renderIndentGuides": true, |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
/** | |
* Group: Editing | |
* Prefix: ctrl+e | |
*/ | |
// Section: new bindings | |
{ | |
"key": "ctrl+e ctrl+f", | |
"command": "editor.action.format", |