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 <fstream> | |
#include <iostream> | |
#include <string> | |
#include <fmt/format.h> | |
#include <spdlog/spdlog.h> | |
#include <Open3D/Open3D.h> | |
#include <librealsense2/rs.hpp> |
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 <fstream> | |
#include <string> | |
#include <iostream> | |
#include <fmt/format.h> | |
#include <spdlog/spdlog.h> | |
#include <Open3D/Open3D.h> | |
#include <librealsense2/rs.hpp> |
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 <stdio.h> | |
#include <stdlib.h> | |
int main (int argc, char *argv[]) { | |
unsigned long base_address = (unsigned long)argv; | |
unsigned long address = (unsigned int)argc | (base_address & 0xFFFFFFFF00000000); | |
if (address == base_address) return 0; | |
else if (address > base_address) { | |
return atoi(*(char**)address) + main((unsigned long)((char**)address - 1), argv); | |
} else { |
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 <stdio.h> | |
#include <stdlib.h> | |
//#include <time.h> //デバッグ用 | |
#define INF 1000000 //無限として定義する | |
#define FOUND -10 //完成したときに返す数字(なんでも良い) | |
#define SIZE 4 //ゲームの1辺の大きさ | |
#define SIZE_M SIZE-1 //計算時間短縮用引数 | |
#define SIZE_S SIZE*SIZE //計算時間短縮用引数 | |
#define SIZE_SM SIZE_S-1 //計算時間短縮用引数 |
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
// Client with unthreaded ClientCommunication | |
import java.io.*; | |
import java.net.*; | |
import java.util.Scanner; | |
public class Client{ | |
public static void main(String[] args) throws IOException{ | |
ClientCommunication comm = new ClientCommunication(args); | |
while (true) { | |
comm.update(); |
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
// ClientCommunication without thread | |
import java.io.*; | |
import java.net.*; | |
import java.util.LinkedList; | |
public class ClientCommunication{ | |
private InetAddress addr = InetAddress.getByName("localhost"); | |
private Socket socket; |
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
// Client using threaded ClientCommunication | |
import java.io.*; | |
import java.net.*; | |
import java.util.Scanner; | |
public class Client{ | |
public static void main(String[] args) throws IOException{ | |
ClientCommunication comm = new ClientCommunication(args); | |
while (true) { | |
Scanner sc=new Scanner(System.in); |
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
// ClientCommunication using Thread | |
import java.io.*; | |
import java.net.*; | |
import java.util.LinkedList; | |
public class ClientCommunication implements Runnable{ | |
private InetAddress addr = InetAddress.getByName("localhost"); | |
private Socket socket; |
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
{ | |
"version": 8, | |
"sources": { | |
"openmaptiles-japan": { | |
"type": "vector", | |
"tiles": ["http://localhost:8080/osm_tiles/{z}/{x}/{y}.pbf"], | |
"minzoom": 0, | |
"maxzoom": 14 | |
}, | |
"okegawa_point": { |