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
.PHONY: out | |
out : main.o | |
gcc -o out main.o | |
./out | |
main.o : main.c | |
gcc -c main.c |
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
#!/usr/bin/env python | |
f = open('ati_array_.txt','w') | |
for line in open ('ati_array.txt','r'): | |
itemList = line.strip() | |
print itemList | |
f.write(itemList) | |
f.write(',') | |
f.close() |
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
out: main.py | |
@ python main.py |
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 <iostream> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include <fstream> |
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 <opencv2/opencv.hpp> | |
#include <random> | |
using namespace std; | |
using namespace cv; | |
int rand_(int range){ | |
std::random_device rnd; // 非決定的な乱数生成器 | |
return rnd()%range; | |
} |
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
out: main.cpp | |
@ g++ main.cpp | |
@ echo "----------program start!----------" | |
@ ./a.out | |
@ echo "-----------program end!-----------" |
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 <iostream> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
int main(){ | |
int sock0; |
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
/* | |
-- Georgia Tech 2016 Spring | |
-- | |
-- This is a sample code to show how to use the libfreenet2 with OpenCV | |
-- | |
-- The code will streams RGB, IR and Depth images from an Kinect sensor. | |
-- To use multiple Kinect sensor, simply initial other "listener" and "frames" | |
-- This code refered from sample code provided from libfreenet2: Protonect.cpp | |
-- https://github.com/OpenKinect/libfreenect2 |
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
# -*- coding: utf-8 -*- | |
import socket | |
import subprocess #for unix command | |
import time #for sleep | |
import random #for random number | |
def main(): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(("192.168.10.103", 51007)) # 指定したホスト(IP)とポートをソケットに設定 | |
print "waiting for connection..." |
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
#!/usr/bin/env python | |
from PyQt5.QtWidgets import (QApplication, QWidget, | |
QGridLayout, QVBoxLayout, QHBoxLayout, | |
QLabel, QLineEdit, QPushButton) | |
import socket | |
import datetime #for datetime | |
import os #for directory | |
import time #for sleep | |
import shutil #for fail copy |
OlderNewer