Skip to content

Instantly share code, notes, and snippets.

View oskar-szulc's full-sized avatar

Oskar Szulc oskar-szulc

  • Toronto, Canada
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 11 columns, instead of 2 in line 5.
name,imageUrl,area,profileUrl,office,tags,isLoggedUser,positionName,id,parentId,size
Ian Devling,https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/cto.jpg,Corporate,http://example.com/employee/profile,CTO office,"Ceo,tag1,manager,cto",false,Chief Executive Officer ,O-6066,,
Davolio Nancy,https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg,Corporate,http://example.com/employee/profile,CEO office,"Ceo,tag1, tag2",false,CTO ,O-6067,O-6066,
Davolio Nancy 5,https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg,Corporate,http://example.com/employee/profile,CEO office,"Ceo,tag1, tag2",false,CTO ,O-6,O-6066,
Davolio Nancy 7,https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg,Corporate,http://example.com/employee/profile,CEO office,"Ceo,tag1, tag2",false,CTO ,O-8,O-6066,
Davolio Nancy 8,https://raw.githubusercontent.c
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 4 in line 1.
name;imageUrl;area;profileUrl;office;tags;isLoggedUser;positionName;id;parentId;size
Ian Devling;https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/cto.jpg;Corporate;http://example.com/employee/profile;CTO office;Ceo,tag1,manager,cto;FALSE;Chief Executive Officer ;O-6066;;
Davolio Nancy 1;https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg;Corporate;http://example.com/employee/profile;CEO office;Ceo,tag1, tag2;FALSE;CTO ;O-6067;O-6066;
Davolio Nancy 2;https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg;Corporate;http://example.com/employee/profile;CEO office;Ceo,tag1, tag2;FALSE;CTO ;O-6067;O-6066;
Davolio Nancy 3;https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/general.jpg;Corporate;http://example.com/employee/profile;CEO office;Ceo,tag1, tag2;FALSE;CTO ;O-6067;O-6066;
Davolio Nancy 4;https://raw.githubusercontent.c
#include <emscripten.h>
#include "Game.h"
extern "C"
{
Game* game;
void EMSCRIPTEN_KEEPALIVE start(char* data, int size)
{
game = new Game();
emcc -std=c++11 *.cpp -s EXPORTED_FUNCTIONS="['_start']" -s BUILD_AS_WORKER=1 -o worker.js
//Unity callback:
typedef void (*FuncPtr)( const char * );
static FuncPtr Result = 0;
//----
void workerCallback(char* data, int size, void* arg)
{
std::string resultData = std::string(data);
emscripten_log(EM_LOG_CONSOLE, result);
#include <emscripten.h>
extern "C"
{
void process(char* input)
{
worker_handle ai_worker = emscripten_create_worker("worker.js");
emscripten_call_worker(ai_worker, "start", input, strlen(input) + 1, workerCallback, (void*)0);
}
}
play 2 1 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 0 5 99,99,6,34,8 36 37 0 0 0 0 0
move:5E4
play 2 1 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8,-1,-1,-1,-1,-1,-1,-1,-1,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 0 5 99,99,6,34 36 37 0 0 0 0 1
Done
play 2 1 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,26,8,-1,-1,-1,-1,-1,-1,-1,-1,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 0 5 99,99,6,34,8 35 36 0 0 0 0 0
play 2 1 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 0 5 99,99,6,34,8 36 37 0 0 0 0 0
[HideInInspector] public PropertyInfo SourceProperty;
[HideInInspector] public PropertyInfo TargetProperty;
[HideInInspector] public string SourcePropertyName;
[HideInInspector] public string TargetPropertyName;
public MonoBehaviour Source;
public MonoBehaviour Target;
void Awake()
{
private PropertyBinding _bindingClass;
private void RefreshSourceProperties()
{
if (_bindingClass.Source == null) return;
var tempSource = from sourceProp in _bindingClass.Source.GetType().GetProperties(BindingFlags.DeclaredOnly |
BindingFlags.Public |
BindingFlags.Instance)
select sourceProp;
_sourceProperties = tempSource.ToList();