Skip to content

Instantly share code, notes, and snippets.

@rinevo
rinevo / MainActivity.java
Last active February 19, 2017 12:19
近接センサータイマー
package com.rinevo.texttest;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
@rinevo
rinevo / Makefile
Last active January 11, 2017 13:43
socket通信とselectによる多重化
# Makefile
CC = g++
CFLG = -I../common
all:
$(CC) -c *.cpp $(CFLG)
$(CC) -o server server.o NetworkCommon.o
$(CC) -o client client.o NetworkCommon.o
@rinevo
rinevo / Makefile
Created February 18, 2015 14:04
実行ファイルとスクリプト間の引数渡しの実験
# Makefile
argtest: argtest.c
g++ -o argtest argtest.c
clean:
rm -f argtest
@rinevo
rinevo / Makefile
Created February 6, 2015 15:30
HTTPクライアント
# Makefile
httpclient: httpclient.c
gcc -o httpclient httpclient.c
clean:
rm -f httpclient
@rinevo
rinevo / Makefile
Last active August 29, 2015 14:14
正規表現で文字列の抽出
# Makefile
regex: regex.c
gcc -o regex regex.c
clean:
rm -f regex
@rinevo
rinevo / Makefile
Created February 1, 2015 09:56
メモリ情報を調べる
# Makefile
sysinfo: sysinfo.c
g++ -o sysinfo sysinfo.c
clean:
rm -f sysinfo
@rinevo
rinevo / Makefile
Last active August 29, 2015 14:14
ディスクの空き容量を調べる
#Makefile
diskfree: diskfree.c
g++ -o diskfree diskfree.c
clean:
rm -f diskfree
@rinevo
rinevo / Makefile
Last active August 29, 2015 14:14
libxmlでXMLファイルから特定要素のXML文を取得
#Makefile
xmlGetTagString: xmlGetTagString.cpp
g++ -o xmlGetTagString xmlGetTagString.cpp `xml2-config --cflags --libs`
clean:
rm -f xmlGetTagString.o
@rinevo
rinevo / Makefile
Last active August 29, 2015 14:14
マルチスレッドで分割コピーする実験
#Makefile
malticopy: malticopy.c
g++ -o malticopy malticopy.c -lrt
clean:
rm -f malticopy