This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>README</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> |
This file contains 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 "AzuraTimer.h" | |
#include <exception> | |
#include <stdint.h> | |
using namespace Azura; | |
/// <summary> | |
/// Constructor for Default Stopwatch Config | |
/// </summary> | |
Timer::Timer() : |
This file contains 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
#pragma once | |
#include "Common.h" | |
#include "boost/function.hpp" | |
using namespace std; | |
namespace Azura | |
{ | |
typedef boost::function<void()> AzuraBasicCallback; |
This file contains 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
#pragma once | |
namespace Scaled | |
{ | |
class Generator | |
{ | |
static int originalPermutation[256]; | |
int perm[512]; | |
int mapHeight; | |
int mapWidth; |
This file contains 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 "Scaled.h" | |
#include <stdexcept> | |
using namespace std; | |
namespace Scaled | |
{ | |
// Hash Lookup defined by Ken Perlin. | |
// Randomly arranged array of all numbers from 0-255 inclusive. |
This file contains 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
cas, err := adapter.Bucket.Get(id, &document.Doc) | |
if err == "Key not found." { | |
// 404 Error | |
} |
This file contains 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
{ | |
"error": true, | |
"code": "DOC_INSERT_ERROR", | |
"subCodes": [ | |
"DOC_ALREADY_EXISTS", | |
"DB_INSERT_CONFLICT" | |
], | |
"report": true, | |
"object": { | |
"store_id": "1234" |
This file contains 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
// Step 1 is to add: | |
// The alpha state to your Mesh Object. | |
// In my case I have a base MeshObject which is derived to all other objects | |
// -- MeshObject.h | |
ref class MeshObject | |
{ | |
// | |
// Other code | |
// | |
This file contains 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
ref class ResourceManager | |
{ | |
internal : | |
ResourceManager(std::shared_ptr<DX::DeviceResources>& deviceResources); | |
// Main Init Task | |
Concurrency::task<void> Init(); | |
auto GetTiles() { return m_tiles; } | |