Skip to content

Instantly share code, notes, and snippets.

@rinevo
rinevo / MainActivity.java
Last active Feb 19, 2017
近接センサータイマー
View MainActivity.java
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 Jan 11, 2017
socket通信とselectによる多重化
View Makefile
# 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 Feb 18, 2015
実行ファイルとスクリプト間の引数渡しの実験
View Makefile
# Makefile
argtest: argtest.c
g++ -o argtest argtest.c
clean:
rm -f argtest
@rinevo
rinevo / Makefile
Created Feb 6, 2015
HTTPクライアント
View Makefile
# Makefile
httpclient: httpclient.c
gcc -o httpclient httpclient.c
clean:
rm -f httpclient
@rinevo
rinevo / Makefile
Last active Aug 29, 2015
正規表現で文字列の抽出
View Makefile
# Makefile
regex: regex.c
gcc -o regex regex.c
clean:
rm -f regex
@rinevo
rinevo / Makefile
Created Feb 1, 2015
メモリ情報を調べる
View Makefile
# Makefile
sysinfo: sysinfo.c
g++ -o sysinfo sysinfo.c
clean:
rm -f sysinfo
@rinevo
rinevo / Makefile
Last active Aug 29, 2015
ディスクの空き容量を調べる
View Makefile
#Makefile
diskfree: diskfree.c
g++ -o diskfree diskfree.c
clean:
rm -f diskfree
@rinevo
rinevo / Makefile
Last active Aug 29, 2015
libxmlでXMLファイルから特定要素のXML文を取得
View Makefile
#Makefile
xmlGetTagString: xmlGetTagString.cpp
g++ -o xmlGetTagString xmlGetTagString.cpp `xml2-config --cflags --libs`
clean:
rm -f xmlGetTagString.o
@rinevo
rinevo / Makefile
Last active Aug 29, 2015
マルチスレッドで分割コピーする実験
View Makefile
#Makefile
malticopy: malticopy.c
g++ -o malticopy malticopy.c -lrt
clean:
rm -f malticopy
You can’t perform that action at this time.