Skip to content

Instantly share code, notes, and snippets.

View pstachula-dev's full-sized avatar
👾

Paweł Stachula pstachula-dev

👾
View GitHub Profile
@pstachula-dev
pstachula-dev / sublime text 2 - poradnik pl
Last active December 10, 2015 23:48
Mini-poradnik dla edytora Sublime Text 2.
/*
|---------------------------------------------------------------------
| 1. Szybkie zaznaczanie
|---------------------------------------------------------------------
| Ctrl + D - zaznaczanie kolejnych elementow
| ALt + F3 - zaznaczenie wszystkich elementow
| PPm + Shift - zaznaczanie kolumnami
|---------------------------------------------------------------------
| 2. Wyszukiwanie polecen i plikow
|---------------------------------------------------------------------
@pstachula-dev
pstachula-dev / gist:4511877
Last active December 10, 2015 23:48
Programowanie Obiektowe w1
#include<iostream>
using namespace std;
struct A{
int id;
};
// Alkowanie pamieci
void create(A **&el, int size)
@pstachula-dev
pstachula-dev / gist:4512183
Last active December 10, 2015 23:48
Programowanie Obiektowe w2
/*
struktura A *a, *a1, **a2, mA;
*/
#include <cstdlib>
#include <iostream>
using namespace std;
class A{
@pstachula-dev
pstachula-dev / gist:4512256
Last active December 10, 2015 23:49
Programowanie Obiektowe w4
#include <iostream>
using namespace std;
class B
{
int k;
public:
friend class A;
B():k(10){}
int getK(){ return k; }
@pstachula-dev
pstachula-dev / gist:4512263
Created January 11, 2013 16:56
Programowanie Obiektowe w5
#include <iostream>
using namespace std;
class E
{
int e;
public:
E():e(5){}
void get(){ cout << e << endl; }
};
1. MySQL
A)
mysql -u root -p
SHOW databases;
CREATE nazwa_bazy;
USE tab_name;
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdlib.h>
int usr1_ile, usr2_ile;
int i, j;
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/errno.h>
char * nazwa_pliku;
char znak;
int bloki, i, j, ilosc_znakow, ilosc_watkow, err, reszta;
pthread_t * th;
@pstachula-dev
pstachula-dev / gist:5690899
Created June 1, 2013 16:15
Programowanie obiektowe 6 projekt
//
// Projekt nr : 6
// gatunki plyt muzycznych
//Przykład 18 + A2.h +A2.cpp
#include <iostream>
#include <string>
#include <time.h>
#include <fstream>
@pstachula-dev
pstachula-dev / gist:6498512
Created September 9, 2013 17:02
SDiZO, Lab1
#include <iostream>
#include <time.h>
using namespace std;
struct element
{
int liczba;
char znak;
};