View vscode.md

VSCode 开发配置

settings.json

VSCode 工作区配置. 菜单 文件->个性化配置->工作区设置 来触发本配置. GOPATH 多个路径在 Mac 下需要 : 分割, Windows 下需要 ; 分割, 下面涉及到的 GOPATH 都遵循此规则. 本节点配置后需要重启 VSCode 来生效.

{
View ubuntu-note.md
  1. windows grub
  • update-grub2
  • sudo gedit /etc/default/grub
  1. setup ubuntu-mate
  • ubuntu-mate-core
  • ubuntu-mate-desktop
View issues_505.md

windows 'dlv debug' include 'exec.LookPath(os.Args[0])' error #505

issues#505

  1. What version of Delve are you using (dlv version)?

master

  1. What version of Go are you using? (go version)?
View rand.go
package utils
import (
"crypto/rand"
"errors"
"math/big"
prand "math/rand"
"time"
)
View IRng.cs
public interface IRng
{
int Next(int maxValue);
int Next(int minValue, int maxValue);
int Next();
void NextBytes(byte[] buffer);
double NextDouble();
}
View vs-dark.css
/* ===add file: \liteide\share\liteide\liteapp\qss\vs-dark.qss ===*/
/* ===FROM: https://gist.github.com/tupunco/fdb713ec9c6189a877e5eb003bd0457d ===*/
/* === Shared === */
QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox,
QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog, QListView,
QTabBar, QMenu, QMenuBar, QWidget::window {
background-color: #252526;
color: #F1F1F1;
font-size: 14px;
View golang_学习.go
package main
import (
//"encoding/json"
"fmt"
//"os"
"sync"
"time"
)
View BizResult.cs
/// <summary>
/// 业务逻辑 返回结果
/// </summary>
/// <remarks>
/// 建议以本类型为返回对象的方法, 不要返回 null 对象.
///
/// 提供三种方法创建本实例:
/// 直接实例:
/// new BizResult<Dish>(...);
///
View SerializableDictionary.cs
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace Tup.Utilities
{
/// <summary>
/// 支持XML序列化的泛型Dictionary类
View SqlMapperExtensions.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq;
using System.Reflection;
namespace Tup.Common.Dapper
{