Skip to content

Instantly share code, notes, and snippets.

View pawelsawicz's full-sized avatar

Pawel Sawicz pawelsawicz

View GitHub Profile
Old :
Session is about mutation testing, why and when you should mutate your code.
What benefits comes by mutating your code. Simply test your own tests.
It's very helpful tool with TDD where you are exposed to a lot of wrong
assumptions and simple syntactic errors that can propagate other errors.
New :
You write your unit test to guard your code, who will guard your unit tests ?
We put a lot of trust into our unit tests. But should we really ? We are humans and we do mistakes.
Old way
void CGame::SendNotifyMsg(int iFromH, int iToH, WORD wMsgType, DWORD sV1, DWORD sV2, DWORD sV3, const char * pString,
DWORD sV4, DWORD sV5, DWORD sV6, DWORD sV7, DWORD sV8, DWORD sV9, char * pString2) const
New way
class MessageContent{
public:
DWORD sV1;
DWORD sV2;
class Player
{
bool ChckPlayer(int i, int j){
CClient *firstClient = clientList[i];
CClient *secondClient = clientList[j];
}
}
class AnotherClass{
Player *player
class Config
{
public:
Config();
~Config();
int MoveDamagePlayer
int MoveDamageNpc
int MoveDamageFightzone
int MoveDamageMagic
int MoveDamageMagicFightzone
(2016:04:18:00:59) - Starting up Helbreath Login Server
(2016:04:18:00:59) - (!) Reading configuration file...
(2016:04:18:00:59) - (*) Login server address : 127.0.0.1
(2016:04:18:00:59) - (*) Login server port : 321
(2016:04:18:00:59) - (*) Gate Server port : 1
(2016:04:18:00:59) - (*) mySql server address : 127.0.0.1
(2016:04:18:00:59) - (*) mySql Server port : 3306
(2016:04:18:00:59) - (*) mysql-user has been setup
(2016:04:18:00:59) - (*) mysql-password has been setup
conemu
git
atom
poshgit
ilspy
conemu
git
atom
thunderbird
poshgit
ilspy
HTTP/1.1 200 OK
Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With, Referer, User-Agent, Origin, Accept, Host, x-app-id, x-api-key, x-application-key
Access-Control-Allow-Methods: HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 300
Age: 0
X-AspNetMvc-Version: 5.2
X-Cacheable: TTL expired
X-Country-Code: GB
X-FinalDomain: Final domain = web_api_services

To obtain barear token access_token additionally this tutorial contain flow for offline_access which allows you to refresh access token, you have to :

  1. At the beginning, you have to specify client_id which is your app id, and scopes openid, profile, email, account are required one. Additionally if you want to be able to refresh access token then add offline_access. This step is usually what user will see.

    a. https://identity.justgiving.com/connect/authorize?client_id=68d9341b&response_type=code&scope=openid+profile+email+account+fundraise+offline_access&redirect_uri=http%3A%2F%2Flocalhost&nonce=ba3c9a58dff94a86aa633e71e6afc4e3

  2. When you obtain code from previous call you can call

    POST: /connect/token

// Example program
#include <iostream>
#include <string>
using namespace std;
int main()
{
int liczbaKostek;
cout << "Podaj liczbe kostek : \n";