- declaration は 「宣言」 と訳しているが、「定義」 の方が適しているような気がしなくもない。
- 「インスタンス」 と 「オブジェクト」 という言葉を使うことがあるが、本文書中ではどちらも同じ意味で使用している。
- 「
Stringオブジェクト」 という表現は、「Stringクラスのインスタンス」 を意味している。 (Java に限らず一般的な表現だと思う。)
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
| object Euler1 { | |
| def fizz(num:Int) = num % 3 == 0 | |
| def buzz(num:Int) = num % 5 == 0 | |
| def main(args: Array[String]): Unit = { | |
| val list = for{ i <- 1 to 999 if(fizz(i) || buzz(i))} yield i |
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 "ViewController.h" | |
| #import <opencv2/opencv.hpp> | |
| @interface ViewController () | |
| @end | |
| @implementation ViewController |
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
| #coding:utf-8 | |
| import cv | |
| import cv2 | |
| import sys | |
| filename = sys.argv[1] | |
| input_img = cv.LoadImage(filename) | |
| # HSVImages |
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
| object Calc{ | |
| def main(args: Array[String]) = { | |
| val two = Calc.add(1,1) | |
| val one = Calc.sub(2,1) | |
| val six = Calc.mul(3,2) | |
| val five = Calc.div(10,2) | |
| val err = try{ | |
| Calc.div(10,0) | |
| } |
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
| #!/usr/bin/env python | |
| import subprocess | |
| args = ["echo",'display notification \"command\" with title \"Terminal\" subtitle \"Mothra\"'] | |
| subprocess.call(args) | |
| #print("display notification 'hoge' | osascript") |
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
| function get_map_url($startposition, $target_position,$scene, $hot_spot, $hotel){ | |
| $url = 'https://maps.google.co.jp/maps?saddr=%s&daddr=%s+to:%s+to:%s+to:%s&hl=ja&sll=35.993563,139.597778&sspn=1.504397,2.90863&geocode=FaM5IAIdXspNCCk39Cm3uR4ZYDFiHE6dVA7YJw%3BFRClIAId_bRTCClL_bdZII0YYDHS7zLij8Zh7A%3BFWjJLQIdN3FWCCk7gFaTbGYfYDHCVIZ5SXc1yQ%3BFfzTHAIdCrVSCCkJZba77FsYYDEAVChg9oOWBg%3BFQdmHgIdG6pPCCnx7vLhov0YYDGy_trbJ1VyvA&brcurrent=3,0x60192a8d477b01e9:0xfed91267aa80526c,0&dirflg=d&mra=ls&t=m&z=9'; | |
| return sprintf($url, $startposition, $target_position,$scene, $hot_spot, $hotel); | |
| } |
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
| ログインの関数。自分ならModelに実装できるように頑張る。 | |
| Modelに書く | |
| ``` | |
| function hogeAction(){ | |
| //ユーザ取得 | |
| $user = UserModel.get(‘なんか鍵’); | |
| //ユーザModelがログインしてるかどうか判断する | |
| if($user->isLogin()){ |
#チョモットボーテ
#ネックのリスト
##電話交換
- 断られる
- 資料請求
- 席を外しています
- 営業お断り
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |