I hereby claim:
- I am kolodziej on github.
- I am kolodziej (https://keybase.io/kolodziej) on keybase.
- I have a public key ASDbJiQqLfwN6KlnQN6zfc82OVWgism1OBm9j0Im952WcQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"status": true, | |
"data": [ | |
{ | |
"attributes": { | |
"expire": 1464016623 | |
}, | |
"type": "tokens", | |
"id": "JSON WEB TOKEN here" | |
}, |
przyklad: przyklad.cpp | |
g++ przyklad.cpp -o run | |
g++ przyklad.cpp -o run_o1 -O1 | |
g++ przyklad.cpp -o run_o2 -O2 | |
g++ przyklad.cpp -o run_o3 -O3 | |
suma: suma.cpp | |
g++ suma.cpp -o suma | |
g++ suma.cpp -o suma_o1 -O1 | |
g++ suma.cpp -o suma_o2 -O2 |
Wezel* a; | |
Wezel* b; | |
int tmp = a->dane; | |
a->dane = b->dane; | |
b->dane = tmp; |
// na początku | |
#include <algorithm> | |
#include <string> | |
std::string str; // w nim masz tekst | |
std::transform(str.begin(), std.end(), str.begin(), ::tolower); | |
// taki zabieg dla obu stringów i porównujesz | |
// jeżeli chcesz zmieniony tekst mieć w drugim stringu, to: |
/* CyclicIterator | |
* Cyclic iterator for STL containers. | |
* @author Kacper Kołodziej | |
* @url http://kacperkolodziej.com/ | |
* @email kacper@kolodziej.in | |
*/ | |
#ifndef CYCLIC_ITERATOR_HPP | |
#define CYCLIC_ITERATOR_HPP | |
#include <iterator> |
CXX=g++ | |
CXXFLAGS=-std=c++11 -g -DDEBUG -Wall | |
APPSFLAGS=-fPIC -shared | |
OBJS=shell_main.o shell.o | |
APPS=concat_application.so echo_application.so | |
LIBS=-ldl | |
TARGET=shell | |
all: $(OBJS) $(APPS) | |
$(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $(TARGET) |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
using namespace std; | |
class Parser | |
{ | |
private: |
#include <dlfcn.h> | |
#include <iostream> | |
int main(int argc, char ** argv) | |
{ | |
if (argc == 1) | |
{ | |
std::cerr << "Usage: " << argv[0] << " modules...\n"; | |
return 1; | |
} |
#ifndef MODULE_BASE_HPP | |
#define MODULE_BASE_HPP | |
class ModuleBase | |
{ | |
public: | |
virtual void run() = 0; | |
}; | |
#endif |