This file contains hidden or 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
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController { | |
// Session | |
var myFrontSession : AVCaptureSession! | |
var myBackSession : AVCaptureSession! | |
This file contains hidden or 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
f = open('test.csv', 'ab') | |
csvWriter = csv.writer(f) | |
csvWriter.writerow(ramenInfo) | |
f.close() |
This file contains hidden or 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
#nvm version v0.25.4 | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash | |
#list node versions which can install | |
nvm ls-remote | |
#install node | |
nvm install v0.12.0 | |
#use node |
This file contains hidden or 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
#Uninstall npm | |
sudo npm uninstall npm -g | |
#Uninstall node | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \ | |
| while read i; do | |
sudo rm /usr/local/${i} | |
done | |
sudo rm -rf /usr/local/lib/node \ | |
/usr/local/lib/node_modules \ |
This file contains hidden or 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
When I tried to use Parse SDK with swift, I just noticed how did I use Parse SDK with swift. | |
First, I tried to code like Objective-C. Of course, it didn’t work and it only displayed some error, “You can’t do that because you have to import Parse SDK.” After that I googled and did try & error. Finally, I could use Parse SDK with swift. So I’m gonna show you how to use Objective-C library with Swift. | |
Step1. Create a header file | |
[Create New file]-[Header file] At that time, you have to name “ProjectName-Bridging-Header.h.” It’s a rule. | |
If your project name is “ParseTest”, you have to name “ParseTest-Bridging-Header.h”. | |
Step2. Add Parse header file path | |
If you finish step1 well, Xcode will create the file like below |
This file contains hidden or 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
Before install node.js (install build tools) | |
$ sudo yum -y groupinstall 'Development Tools' | |
$ rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
$ sudo yum -y install nodejs npm --enablerepo=epel | |
$ node -v |
This file contains hidden or 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
You have had to install ruby on your machine. | |
Update gem | |
gem update --system | |
Install rails without documents because it's going to be faster than with documents | |
gem install rails --no-ri --no-rdoc |
This file contains hidden or 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
#httpd | |
sudo yum -y install httpd | |
sudo service httpd start | |
sudo chkconfig httpd on | |
#iptables | |
sudo service iptables stop | |
sudo chkconfig iptables off | |
#epel & remi |
This file contains hidden or 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
If you can't install ruby2.0 or later with rbenv, you should check you installed those already. | |
sudo yum -y install libyaml libyaml-devel zlib zlib-devel readline readline-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel | |
If you finish installing those, you can install ruby2.0 or later probably. | |
And you should confirm which you can install | |
rbenv install -l |
This file contains hidden or 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
tar Jxvf FileName.tar.xz | |
or | |
tar -Jxvf FileName.tar.xz | |
If you get an error and don't have xz, you have to install this like below | |
sudo yum install xz |