Skip to content

Instantly share code, notes, and snippets.

View sampletext32's full-sized avatar
😉

Bird Egop sampletext32

😉
View GitHub Profile
@sampletext32
sampletext32 / repo-from-code.bash
Last active November 18, 2020 01:50
Bash snippet to create github repo from existing VS project folder
git init
curl https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore --output .gitignore
git add .gitignore
git commit -m "Add .gitignore"
git add .
git commit -m "Add project"
get_reponame() { echo `basename $(git rev-parse --show-toplevel)`; }
hub create sampletext-projects/`get_reponame`
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "russian");
cout << "Моисеева Н УТН - 112\n";
cout << "Индивидуальное задание 5\n";
int count = 1;
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
setlocale(LC_ALL, "russian");
cout << "Автор: Моисеева Наталия\n";
using System;
namespace HomeTask1
{
/// <summary>
/// Необходимо написать программу эмулирующую защиту выпускных работ. В комиссии присуствуют n экспертов.
/// Ваша программа получает строку тему доклада, затем n оценок доклада и выводит среднюю оценку доклада.
/// Считывание докладов и подсчет оценок происходит до тех пор, пока не получите команду "Finish". После
/// данной комманды выводит средний показатель всех докладов.
/// </summary>
// getdor2.cpp: главный файл проекта.
/*Пример работы с файлами. Использует стандартные функции С++ для работы с текстовым файлом
Программа позволяет дополнить описанную в программе таблицу дорог либо из файла либо с клавиатуры.
После этого находит в таблице заданную мнемокодом дорогу.
*/
#include <iostream>
#include <cstdio>
#include <fstream>
using namespace std;

Перед началом!

Убедитесь в правильном наименовании проектов

  • Infrastructure
  • DbConsole
  • Entities

В моём случае всё выглядит вот так

2020-06-02_21-49-46

// Example program
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <sstream>
using u64 = size_t;
enum direction
curl https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore --output .gitignore
git add .gitignore
git commit -m "Add .gitignore"
git rm --cached -r .
git add .
git commit -m "Update gitignore"
git push
def is_prime(k):
d = 2
while d * d <= k and k % d != 0:
d += 1
return d * d > k
def pos_sum(matrix):
sum = 0
for i in range(n):
for j in range(n):
public class Graph
{
public class Connection
{
public Node n1;
public Node n2;
public int Distance { get; set; }
public Connection(Node n1, Node n2)