Skip to content

Instantly share code, notes, and snippets.

View pstachula-dev's full-sized avatar
👾

Paweł Stachula pstachula-dev

👾
View GitHub Profile
1. MySQL
A)
mysql -u root -p
SHOW databases;
CREATE nazwa_bazy;
USE tab_name;
@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; }
};
@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: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: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 / 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
|---------------------------------------------------------------------