This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
domain name (godaddy.com); hosting (github.io) | |
server hosting (https://www.ovh.com/us/vps/vps-classic.xml) | |
PayPal donation button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <functional> | |
#include <map> | |
//this function takes "key, value" types of the map container as template parameters | |
//this function takes the map container and a lambda as arguments | |
//the lambda takes one argument, a std::pair structure which in turn takes "const key, const& value" as it's template parameters | |
template<typename key, typename value> | |
void map_remove_if(std::map<key, value>& container, std::function<bool(std::pair<key const, value const&>)> fn) { | |
std::map<key, value>::iterator it = container.begin(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Vector2 { | |
double x, y; | |
} | |
inline double cos(Vector2 v) { | |
//x over hypotenuse | |
return v.x / sqrt(v.x*v.x + v.y*v.y); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <cstring> | |
#include <iomanip> | |
#include <iostream> | |
unsigned fnv_hash_1a_32(void *key, int len) { | |
unsigned char *p = static_cast<unsigned char*>(key); | |
unsigned h = 0x811c9dc5; | |
for (int i = 0; i < len; i++) { | |
h = ( h ^ p[i] ) * 0x01000193; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Searching 211 files for "Mgr." | |
C:\Users\Kayne\Desktop\Tortuga\server\server_character_methods.cpp: | |
30 | |
31 void ServerApplication::hCharacterCreate(CharacterPacket* const argPacket) { | |
32: int characterIndex = characterMgr.Create(argPacket->accountIndex, argPacket->handle, argPacket->avatar); | |
33 | |
34 if (characterIndex < 0) { | |
.. | |
47 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "name.hpp" | |
namespace test { | |
void printVar() { | |
std::cout << var << std::endl; | |
} | |
void setVar(int i) { | |
var = i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright: (c) Kayne Ruse 2015 | |
* | |
* This software is provided 'as-is', without any express or implied | |
* warranty. In no event will the authors be held liable for any damages | |
* arising from the use of this software. | |
* | |
* Permission is granted to anyone to use this software for any purpose, | |
* including commercial applications, and to alter it and redistribute it | |
* freely, subject to the following restrictions: | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal: | |
__name = "" | |
__height = 0 | |
__weight = 0 | |
__sound = "" | |
def __init__(self, name, height, weight, sound): | |
self.__name = name | |
self.__height = height | |
self.__weight = weight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lorem = ['Lorem', 'ipsum', 'dolor', 'sit', 'amet,', 'consectetur', 'adipiscing', 'elit.', 'Sed', 'at', 'ante.', 'Mauris', 'eleifend,', 'quam', 'a', 'vulputate', 'dictum,', 'massa', 'quam', 'dapibus', 'leo,', 'eget', 'vulputate', 'orci', 'purus', 'ut', 'lorem.', 'In', 'fringilla', 'mi', 'in', 'ligula.', 'Pellentesque', 'aliquam', 'quam', 'vel', 'dolor.', 'Nunc', 'adipiscing.', 'Sed', 'quam', 'odio,', 'tempus', 'ac,', 'aliquam', 'molestie,', 'varius', 'ac,', 'tellus.', 'Vestibulum', 'ut', 'nulla', 'aliquam', 'risus', 'rutrum', 'interdum.', 'Pellentesque', 'lorem.', 'Curabitur', 'sit', 'amet', 'erat', 'quis', 'risus', 'feugiat', 'viverra.', 'Pellentesque', 'augue', 'justo,', 'sagittis', 'et,', 'lacinia', 'at,', 'venenatis', 'non,', 'arcu.', 'Nunc', 'nec', 'libero.', 'In', 'cursus', 'dictum', 'risus.', 'Etiam', 'tristique', 'nisl', 'a', 'nulla.', 'Ut', 'a', 'orci.', 'Curabitur', 'dolor', 'nunc,', 'egestas', 'at,', 'accumsan', 'at,', 'malesuada', 'nec,', 'magna.', 'Nulla', 'facilisi.', 'Nunc', 'volutpat.', 'Ve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration | |
var webpackConfig = require('./webpack.config.js'); | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |