Skip to content

Instantly share code, notes, and snippets.

@KartikShrivastava
KartikShrivastava / GoogleMap.cs
Last active November 20, 2018 16:38 — forked from derme302/GoogleMap.cs
Load a Google Map into Unity3D
/*
* Based on the Google Maps for Unity Asset
* https://www.assetstore.unity3d.com/en/#!/content/3573
* However the relience on UniWeb has been removed
*
*
Getting Started
---------------
1. Create a 3d Plane game object.
@KartikShrivastava
KartikShrivastava / android logs
Created January 26, 2022 10:35
p2p_call_sample | windows os | call initialted from chrome browser(windows) and received from android device
Showing Moto E 4 logs:
I/flutter (22310): Observatory listening on http://127.0.0.1:50288/WDqkdn3fK-0=/
I/flutter (22310): CB-SDK: : =========================================================
I/flutter (22310): === REQUEST ==== 81941eb2-3bc4-4c85-8da6-07ea07941df5 ===
I/flutter (22310): REQUEST
I/flutter (22310): POST https://api.connectycube.com/session
I/flutter (22310): HEADERS
I/flutter (22310): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.0.7, CB-Token: }
I/flutter (22310): BODY
I/flutter (22310): {"application_id":"5569","auth_key":"QNySeOHdAHbWyhT","nonce":"744537040","timestamp":"1643192837","signature":"1628c2b122037fb7b075de24e993f3d6c3af00e3","user":{"login":"wikele9855","email":"[email protected]","password":"wdZW4kKC2TWd2USDJEhAoeUVVND3"}}
@KartikShrivastava
KartikShrivastava / android logs
Created January 26, 2022 10:50
p2p_call_sample | windows os | call initialted from android device and received from chrome browser(windows)
Showing Moto E 4 logs:
I/flutter (22592): Observatory listening on http://127.0.0.1:41210/XeAJ7TFHsiI=/
I/flutter (22592): CB-SDK: : =========================================================
I/flutter (22592): === REQUEST ==== 1a163af2-1c6e-43c9-8754-da9e2fb3297e ===
I/flutter (22592): REQUEST
I/flutter (22592): POST https://api.connectycube.com/session
I/flutter (22592): HEADERS
I/flutter (22592): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.0.7, CB-Token: }
I/flutter (22592): BODY
I/flutter (22592): {"application_id":"5569","auth_key":"QNySeOHdAHbWyhT","nonce":"374533562","timestamp":"1643193989","signature":"fdc3e1580f900149db52da18e3e7e5e065eeae2e","user":{"login":"wikele9855","email":"[email protected]","password":"wdZW4kKC2TWd2USDJEhAoeUVVND3"}}
@KartikShrivastava
KartikShrivastava / buildlogfail1.txt
Created March 3, 2022 14:40
PCL build log with PCH on Visual Studio 2019
This file has been truncated, but you can view the full file.
Rebuild started...
1>------ Rebuild All started: Project: SharedPCH, Configuration: Debug x64 ------
2>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64 ------
2>Checking Build System
1>stdafx.cpp
1>SharedPCH.vcxproj -> C:\Home\Projects\Github\PointCloudLibrary\buildMar1\Outputs\x64\Debug\SharedPCH.lib
3>------ Rebuild All started: Project: pcl_common, Configuration: Debug x64 ------
4>------ Rebuild All started: Project: pcl_io_ply, Configuration: Debug x64 ------
4>Building Custom Rule C:/Home/Projects/Github/PointCloudLibrary/pcl/io/CMakeLists.txt
3>Building Custom Rule C:/Home/Projects/Github/PointCloudLibrary/pcl/common/CMakeLists.txt
@KartikShrivastava
KartikShrivastava / .lib built - no conflicting pch header
Last active March 3, 2022 17:57
Visual studio solution with PCH does not "Create library().lib" after including a specific header file in stfafx.h
Rebuild started...
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug x64 ------
2>------ Rebuild All started: Project: SharedPCH, Configuration: Debug x64 ------
1>Checking Build System
2>stdafx.cpp
2>SharedPCH.vcxproj -> C:\Home\Projects\Github\PointCloudLibrary\buildMar1\Outputs\x64\Debug\SharedPCH.lib
3>------ Rebuild All started: Project: pcl_io_ply, Configuration: Debug x64 ------
3>Building Custom Rule C:/Home/Projects/Github/PointCloudLibrary/pcl/io/CMakeLists.txt
3>Performing Custom Build Step
3>C:\Home\Projects\Github\PointCloudLibrary\buildMar1\Outputs\Intermediate\Shared\x64\Debug\vc142.pdb -> C:\Home\Projects\Github\PointCloudLibrary\buildMar1\io\pcl_io_ply.dir\Debug\vc142.pdb
@KartikShrivastava
KartikShrivastava / enigma-dev.cpp
Last active March 12, 2022 19:50
enigma-dev start.sh logs
kash@kash:~/.../enigma-dev$ ~/github/enigma-dev/start.sh
/home/kash/github/enigma-dev/start.sh: line 3: cd: enigma-dev: No such file or directory
Java Version: 110014 (11.0.14)
Mar 13, 2022 1:12:35 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Gtk-Message: 01:12:36.555: Failed to load module "canberra-gtk-module"
Loading lib files in /home/kash/github/enigma-dev/lateralgm.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
05_score.lgl 06_extra.lgl 07_draw.lgl
Calling `make eTCpath=""`
virtual bool for_each(pugi::xml_node& node) {
for(pugi::xml_attribute attr : node.attributes()) {
if(strcmp(node.name(),"tileset") == 0){
if(strcmp(attr.name(),"tilewidth") == 0)
background->set_tile_width(std::stoi(attr.value()));
else if(strcmp(attr.name(),"tileheight") == 0)
background->set_tile_height(std::stoi(attr.value()));
// truncated code ...
}
// truncated code ...
syntax = "proto2";
package buffers.resources;
message Background {
optional int32 id = 1 [(gmx) = "GMX_DEPRECATED", (tmx) = "firstgid"];
// truncated code...
}
#include "tsx.h"
// truncated headers and namespaces
class TSXTilesetLoader : public pugi::xml_tree_walker {
virtual bool for_each(pugi::xml_node& xmlNode) {
// truncated code...
AddResource(protoNode, resType, xmlNode);
return true;
}
bool TSXTilesetLoader::for_each(pugi::xml_node& xmlNode) {
// truncated code...
pugi::xml_node imgNode = xmlNode.child("image");
if(imgNode.empty()) {
pugi::xml_object_range<pugi::xml_named_node_iterator> tileChildrenItr = xmlNode.children("tile");
for(pugi::xml_node tileChild : tileChildrenItr) {
buffers::TreeNode *protoNode = backgroundFolderRef->mutable_folder()->add_children();
std::string tileId = tileChild.attribute("id").value();