// Keeps info about users account in bank
typedef struct account {
// account number in bank
int account_number;
char *first_name;
char *last_name;
// balance in bank
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 Moq; | |
using System; | |
using Xunit; | |
namespace ConsoleApp2 | |
{ | |
public class User | |
{ | |
public Guid Id { get; private set; } |
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
public enum Moving { | |
None, | |
Down=1, | |
Up=2 | |
} | |
public struct State { | |
public int Elevator; | |
public int Floor { get; set; } | |
public Moving Moving { get; set; } | |
} |
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
https://weblogs.asp.net/ricardoperes/signalr-in-asp-net-core | |
public class ChatHub : Hub | |
{ | |
public async Task Send(string message) | |
{ | |
//await this.Clients.All.InvokeAsync("Send", message); | |
await this.Clients.Client(this.Context.ConnectionId).InvokeAsync(nameof(Send), message); | |
} | |
} |
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
feh --thumbnails --index-info "%n\n%wx%h" * |
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
% mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/username |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication3 | |
{ | |
class Category | |
{ |
$/
docs/
src/
tests/
samples/
artifacts/
packages/
build/
lib/
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
#include <windows.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <iconv.h> | |
#include <string.h> | |
#define MAX_UTF8_BYTES_PER_CHAR 4 | |
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
vim + cscope + cgdb |
NewerOlder