Skip to content

Instantly share code, notes, and snippets.

View MasazI's full-sized avatar

Masahiro Imai MasazI

View GitHub Profile
@MasazI
MasazI / Sample.h
Created June 9, 2015 23:19
Sample.h
//
// MixiSampleClass.h
// TrainingObjectiveC
//
// Created by masai on 2015/06/09.
// Copyright (c) 2015年 masai. All rights reserved.
//
#import <Foundation/Foundation.h>
@MasazI
MasazI / android_lombok.gradle
Created June 1, 2015 07:54
android_lombok.gradle
dependencies {
...
provided 'org.projectlombok:lombok:1.12.2'
}
@MasazI
MasazI / Lombok.java
Created June 1, 2015 05:50
lombok_@Data
package jp.masazdream.ds;
import lombok.Data;
/**
* Lombokのサンプルクラス
*
* @author masai
*
*/
@MasazI
MasazI / htop_install.sh
Created May 31, 2015 08:29
htop_insall
# brew install htop [/usr/local/Cellar/tbb/4.3-20140724/include/tbb]
==> Downloading https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/htop-osx/0.8.2.2
==> make install DEFAULT_INCLUDES='-iquote .'
==> Caveats
htop-osx requires root privileges to correctly display all running processes.
You can either run the program via `sudo` or set the setuid bit:
@MasazI
MasazI / tbb_mac_install.sh
Created May 31, 2015 07:24
tbb mac install
# brew install tbb [/Library/Frameworks]
==> Downloading https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_20140724oss_src.tgz
######################################################################## 100.0%
==> make tbb_build_prefix=BUILDPREFIX compiler=clang arch=intel64
/usr/local/Cellar/tbb/4.3-20140724: 104 files, 1.9M, built in 4.2 minutes
@MasazI
MasazI / tbb_parallel_for.cpp
Created May 31, 2015 07:18
tbb parallel for
//
// tbb_intro.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/31.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <cmath>
@MasazI
MasazI / stringstream.cpp
Created May 30, 2015 09:57
stringstream.cpp
//
// stringstream.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/30.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <string>
@MasazI
MasazI / numeric_limits.cpp
Created May 29, 2015 10:21
numeric_limits.cpp
//
// limits.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/19.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <limits>
@MasazI
MasazI / minmax.cpp
Created May 29, 2015 06:21
minmax.cpp(C++11)
//
// minmax.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/29.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <vector>
@MasazI
MasazI / swap.cpp
Created May 28, 2015 08:14
swap.cpp
//
// swap.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/28.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <string>