This file contains 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
package main | |
import "fmt" | |
func main() { | |
s := Super{} | |
fmt.Println(s.Get()) | |
//基底クラスのgetから派生クラスの関数をオーバーライドして呼び出すことはできない | |
t := Sub{} | |
fmt.Println(t.Get()) |
This file contains 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
package main | |
import "fmt" | |
func main() { | |
s := Impl{NewSuper("Super!")} | |
fmt.Println(s.Get()) | |
//実装クラスのgetから派生クラスのメソッドを呼び出す | |
i := Impl{NewSub("Sub!")} | |
fmt.Println(i.Get()) |
This file contains 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
class Base: | |
def __init__(self, str): | |
self.str = str | |
def make_string(self): | |
return "Hi, " + self.str | |
def get(self): | |
return self.make_string() | |
This file contains 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
package main | |
import "fmt" | |
func main() { | |
s := NewSuper("Super!") | |
fmt.Println(s.Get()) | |
//基底クラスのgetから派生クラスのメソッドをオーバーライドして呼び出すことはできない | |
t := NewSub("Sub!") | |
fmt.Println(t.Get()) |
This file contains 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
sudo sh -c 'echo "deb http://jp.archive.ubuntu.com/ubuntu/ precise main universe" >> /etc/apt/sources.list' | |
sudo sh -c 'echo "deb-src http://jp.archive.ubuntu.com/ubuntu/ precise main universe" >> /etc/apt/sources.list' | |
sudo dpkg --add-architecture armhf | |
dpkg --print-foreign-architectures | |
# i386 | |
# armhf | |
# HACK : I don't want to touch sources.list | |
# apt-get updateの404が気にならない人は実行しなくても問題なし |
This file contains 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
# CUDA 6.0 Toolkit for L4T Rel | |
# https://developer.nvidia.com/jetson-tk1-support | |
# ダウンロードにはCUDA Registered Developer Programへの参加(登録)が必要 | |
# debインストールのために時刻合わせ | |
sudo ntpdate ntp.nict.jp | |
date | |
sudo dpkg -i ~/Downloads/cuda-repo-l4t-r19.2_6.0-42_armhf.deb | |
sudo apt-get update | |
sudo apt-get install cuda-samples-6-0 cuda-toolkit-6-0 |
This file contains 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
cd ~/NVIDIA-INSTALLER | |
sudo ./installer.sh | |
sudo reboot |
This file contains 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
--- sources.list 2000-02-01 11:19:01.619500826 +0000 | |
+++ sources.list 2000-02-01 11:19:54.623500813 +0000 | |
@@ -14,10 +14,10 @@ | |
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | |
## team. Also, please note that software in universe WILL NOT receive any | |
## review or updates from the Ubuntu security team. | |
-# deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe | |
-# deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe | |
-# deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe | |
-# deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe |
This file contains 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
sudo apt-get install texworks | |
wget https://gist.github.com/idkqh7/369ec0fc915fcbbee559/raw/updflatex | |
chmod +x updflatex | |
sudo mv updflatex /usr/local/bin/ | |
wget https://gist.github.com/idkqh7/ea94620ec6c5951bef30/raw/addupdflatex.py | |
python3 addupdflatex.py | |
rm addupdflatex.py |
This file contains 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
#!/bin/sh | |
uplatex -synctex=1 "$1" && \ | |
dvipdfmx "`basename "$1" .tex`" |
NewerOlder