Skip to content

Instantly share code, notes, and snippets.

Damian shoter

Block or report user

Report or block shoter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shoter /
Created Sep 17, 2018
Simple File deleter for windows 10
import os, time, sys
from win10toast import ToastNotifier
toast = ToastNotifier()
def str_join(*args):
return ''.join(map(str, args))
def warnAboutOldFiles(path, days):
path = "C:\\Users\\damian_laczak\\Downloads"
shoter / .cs
Created Mar 30, 2018
View .cs
public abstract class NinjectableJob : IJob
protected IKernel kernel;
public void Execute()
using(kernel = new StandardKernel())
View gist:6697083
#include <iostream>
#include <conio.h>
const int PRZELOT_COUNT = 4;
#define LINE_BREAK std::cout << "---------------------------------------------------" << std::endl;
//napisz progrma w ktorej zadeklarujesz tablice struktua, struktura o nazwie przelot zawiera
// nastepujace elementy : trasa(dokad),
//dlugosc trasy
//czas- w godzinach
shoter / loadFile( std::string filename )
Created Sep 11, 2013
Loading file content into buffer.
View loadFile( std::string filename )
std::vector<std::string>* loadFile( std::string filename )
std::ifstream fileStream; filename.c_str() );
std::vector<std::string> *strings = new std::vector<std::string>();
int i = 0;
fileStream >> (*strings)[i++];
View gist:5386370
#include <stdio.h>
#include <iostream>
#include <conio.h>
#include <stdlib.h>
//napisz program ktory tablice 8 elementowa, z uzykotniwkami.
//nastepnie liczbe
char buffer[10000];
void *wsk = (void *)buffer;
void* wczytaj_liczbe()
You can’t perform that action at this time.