Skip to content

Instantly share code, notes, and snippets.

View MojamojaK's full-sized avatar
🏠
Working from home

Kazuki Fujita MojamojaK

🏠
Working from home
View GitHub Profile
#include <fstream>
#include <iostream>
#include <string>
#include <fmt/format.h>
#include <spdlog/spdlog.h>
#include <Open3D/Open3D.h>
#include <librealsense2/rs.hpp>
#include <fstream>
#include <string>
#include <iostream>
#include <fmt/format.h>
#include <spdlog/spdlog.h>
#include <Open3D/Open3D.h>
#include <librealsense2/rs.hpp>
#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 {
#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 //計算時間短縮用引数
// 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();
// 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;
// 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);
// 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;
{
"version": 8,
"sources": {
"openmaptiles-japan": {
"type": "vector",
"tiles": ["http://localhost:8080/osm_tiles/{z}/{x}/{y}.pbf"],
"minzoom": 0,
"maxzoom": 14
},
"okegawa_point": {