- change default remote HEAD branch:
git remote set-head origin <branch>
- show local branches:
git branch
- show all branches (even deleted):
git branch --all
- delete local branch:
git branch -d <branch>
- delete remote branch:
git push origin --delete <branch>
orgit push origin :<branch>
- get git commits:
git reflog
- change git name:
git config --global user.name "<name>"
- change git email:
git config --global user.email "<email>"
- show all branchs (including local):
git branch -a
This file contains 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.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
namespace UDP | |
{ | |
public class UDPSocket | |
{ | |
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
This file contains 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.IO; | |
using System.Linq; | |
using System.Text; | |
namespace ShuntingYardParser | |
{ | |
enum TokenType { Number, Variable, Function, Parenthesis, Operator, Comma, WhiteSpace }; |
This file contains 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
# Author: Devwarlt | |
# Date: 14 Aug 2021 | |
# | |
# About this algorithm: | |
# A load balancer algorithm for thread balancing in order to avoid | |
# overwhelming processing and CPU exhaustion. | |
# | |
from typing import ( | |
Callable, Iterable, Any, |