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 "level.h" | |
void level::load(const char* mapFilename){ | |
// Open level file and parse json | |
std::ifstream mapDataFile(mapFilename); | |
json::Value mapJson; | |
json::read(mapDataFile, mapJson); | |
width = mapJson.GetIntMember("width"); | |
height = mapJson.GetIntMember("height"); |
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 <kami.h> | |
class Dialog { | |
public: | |
float time, duration; | |
std::wstring buffer, target; | |
klib::Point<int> pos; | |
klib::Font font; |
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
void Path::Follow(AI &ai){ | |
float nx, ny; | |
if (!ai.casual && index < nodeList.size() && index < 4){ | |
auto node = (int)nodeList[index]; | |
ny = node / solver->mapWidth; | |
nx = node - ny * solver->mapWidth; | |
nx *= PATH_DIVISOR; |
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
## Last changed: 2014-08-11 18:41:38 EST | |
version 12.1X46-D20.5; | |
groups { | |
wiz_PPPoE_0 { | |
system { | |
services { | |
dhcp { | |
propagate-ppp-settings pp0.0; | |
} | |
} |
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
library ieee; | |
use ieee.std_logic_1164.all; | |
library MACHXO2; | |
use MACHXO2.components.all; | |
-- Opcode Size Description CMD Access | |
------------------------------------------------------------------------------------------ | |
-- Operation codes for SPI FSM | |
------------------------------------------------------------------------------------------ | |
-- INJMDR 16 Injector main delta 0xA0 Write |
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
2015/08/25 01:55:58 Starting worker 1 | |
2015/08/25 01:55:58 Starting worker 2 | |
2015/08/25 01:55:58 Server listening on port 9072 | |
2015/08/25 01:56:04 Received work requeust | |
2015/08/25 01:56:04 Dispatching work request | |
2015/08/25 01:56:04 Worker 1: Received work request for M:/Development/Web/Plusmore/RenderJobs/data/AGDG_Logo 2_2.mp4 | |
2015/08/25 01:56:34 Received work requeust | |
2015/08/25 01:56:34 Dispatching work request | |
2015/08/25 01:56:34 Worker 2: Received work request for M:/Development/Web/Plusmore/RenderJobs/data/1337 haxor needs more time.mp4 | |
2015/08/25 01:57:18 Worker 1: Render job for M:/Development/Web/Plusmore/RenderJobs/data/AGDG_Logo 2_2.mp4 completed successfuly |
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
M:\Development\Web\Plusmore\RenderJobs>go test src\dispatch\worker_test.go -v | |
=== RUN TestRenderJob | |
2015/09/12 23:16:46 Starting worker 1 | |
2015/09/12 23:16:46 Starting worker 2 | |
2015/09/12 23:16:46 Starting worker 3 | |
2015/09/12 23:16:46 Starting worker 4 | |
2015/09/12 23:16:46 Received work requeust | |
2015/09/12 23:16:46 Received work requeust | |
2015/09/12 23:16:46 Dispatching work request | |
2015/09/12 23:16:46 Worker 2: Received work request |
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
// local ram 0x100-1FF, external 0x200-2FF | |
__xdata Stack openList; // Stack is allocated on the stack at 0x108 | |
initStack(&openList); // doesn't work because it expects an ext ram address but has local | |
__xdata Stack* openList; // Stack is referenced on the heap at 0x200 | |
initStack(openList); // works??? |
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
Total: connections 10000 requests 9999 replies 9999 test-duration 10.017 s | |
Connection rate: 998.3 conn/s (1.0 ms/conn, <=154 concurrent connections) | |
Connection time [ms]: min 0.9 avg 4.9 max 458.1 median 1.5 stddev 21.1 | |
Connection time [ms]: connect 1.4 | |
Connection length [replies/conn]: 1.000 | |
Request rate: 998.2 req/s (1.0 ms/req) | |
Request size [B]: 83.0 |
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
proxy: | |
image: jwilder/nginx-proxy | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
ports: | |
- "80:80" | |
redis: | |
image: redis |