Skip to content

Instantly share code, notes, and snippets.

@algopia
algopia / file0.txt
Last active November 25, 2016 11:55
anacondaは使わない。AWSGPU+Ubuntu14.04+jupyter+theano+chainer+OpenCV3.1.0+cuDNNな環境構築 ref: http://qiita.com/pia/items/c1c740c98d8810f7167d
$ sudo apt-get update
$ sudo apt-get install build-essential cmake pkg-config
$ sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
$ sudo apt-get install libxvidcore-dev libx264-dev
$ sudo apt-get install libgtk2.0-dev
$ sudo apt-get install libatlas-base-dev gfortran
$ sudo apt-get -y install cmake git libgtk2.0-dev ocl-icd-opencl-dev
$ python --version
Python 2.7.6
@algopia
algopia / Jetpackを利用したセットアップ
Created September 21, 2016 11:45
MacOSX物理環境へのUbuntu14.04インストールからJetsonセットアップまで ref: http://qiita.com/pia/items/00f0883721b6f20b56ee
$ cd /home/ubuntu/ダウンロード
$ chmod +x JetPack-L4T-2.3-linux-x64.run
$ mv JetPack-L4T-2.3-linux-x64.run /home/ubuntu/jetson-tx1
$ cd /home/ubuntu/jetson-tx1
$ ./JetPack-L4T-2.3-linux-x64.run
@algopia
algopia / file1.txt
Created July 21, 2016 04:15
Cloud Vision APIで遊んでみた ref: http://qiita.com/pia/items/51d5b745f671ce9b181a
$ php cloudVisionDemo.php 'water.jpg' LABEL_DETECTION
array(1) {
["responses"]=>
array(1) {
[0]=>
array(1) {
["labelAnnotations"]=>
array(3) {
[0]=>
array(3) {
@algopia
algopia / file0.txt
Created July 20, 2016 09:20
kubernetesのpodがRunning状態のままReadyがFalseになって、一切の新規外部接続を受け付けなくなった ref: http://qiita.com/pia/items/1421a8ab16a60b171f61
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
@algopia
algopia / file0.txt
Last active July 16, 2016 10:45
RaspberryPi3にカメラモジュールつけて撮影した画像をDeepLearningで分類してみた ref: http://qiita.com/pia/items/40b55e038b333617c29a
$ vcgencmd get_camera
supported=1 detected=1
@algopia
algopia / DeviceEntry.cs
Created April 1, 2016 13:26
GR-PEACH + AzureでIoTを試す(組込みデバイスの情報をクラウドにあげるまで) ref: http://qiita.com/pia/items/711077847d03dd40e587
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace xxxxxxxxxxService.DataObjects
{
using Microsoft.Azure.Mobile.Server;
public class DeviceEntry : EntityData
{
@algopia
algopia / .bash_profile
Created March 29, 2016 01:19
.NETアプリケーションをMacで開発してAzureにデプロイする ref: http://qiita.com/pia/items/5fad8247cce33ec66b79
code () {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
[[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}"
open -a "Visual Studio Code" --args "$F"
fi
}