This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: Scaffold( | |
body: SafeArea( | |
child: Center( | |
child: Column( | |
children: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2021.7.2 UPDATE | |
// According to zap's doc, now we can use zapcore.AddSync to directly add lumberjack as a zap sync | |
// see https://github.com/uber-go/zap/blob/master/FAQ.md#does-zap-support-log-rotation | |
// thanks to: | |
// https://studygolang.com/articles/17394 | |
// https://stackoverflow.com/questions/54395407/zap-logging-with-1-customized-config-and-2-lumberjack | |
package logger | |
import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by ChatGPT | |
import os | |
import sys | |
import glob | |
import chardet | |
import codecs | |
def change_file_encoding(file_path, target_encoding): | |
# Determine the current encoding of the file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"time" | |
) | |
func main() { |