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
static void Main(string[] args) | |
{ | |
var buffer = g().ToArray(); | |
Console.WriteLine(HexDump(buffer)); | |
IEnumerable<byte> g(){ | |
foreach(var i in Enumerable.Range(0, 256)){ | |
yield return (byte)i; | |
} |
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
from __future__ import division | |
from PyQt5 import QtWidgets | |
from PyQt5.QtCore import QSize, Qt | |
from PyQt5.QtGui import QPainter, QPen, QColor, QFont | |
class RoundProgressBar(QtWidgets.QWidget): | |
def __init__(self, parent=None): |
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
internal static class ProcessManager | |
{ | |
public static void GetProcessLock() | |
{ | |
ProcessManager.ProcessLock = new Mutex(false, "Global\\LuYao.Toolkit[" + ProcessManager.GetUid() + "]", ref ProcessManager.HasLock); | |
if (!ProcessManager.HasLock) | |
{ | |
ProcessManager.ActiveWindow(); | |
Environment.Exit(0); | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.NetworkInformation; | |
using System.Net; | |
namespace AvailablePort | |
{ | |
class Program |
OlderNewer