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
Ⅰ: (1度)ルート音 | |
Ⅱ: (2度)ルートから全音1つ分高い音 | |
Ⅲ: (3度)ルートから全音2つ分高い音 | |
Ⅳ: (4度)ルートから全音2つ+半音1つ分高い音 | |
Ⅴ: (5度)ルートから全音3つ+半音1つ分高い音 | |
Ⅵ: (6度)ルートから全音4つ+半音1つ分高い音 | |
Ⅶ: (7度)ルートから全音5つ+半音1つ分高い音 | |
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 Welcome extends CI_Controller { | |
public function index(){ | |
if($this->form_validation instanceof CI_Form_validation) $this->form_validation->alpha(""); | |
$this->load->view('welcome_message'); | |
} | |
} |
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
<?php | |
/** | |
* @property CI_Form_validation $form_validation | |
*/ | |
trait PropertyTrait { | |
} | |
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
<?php | |
/** | |
* @property CI_Form_validation $form_validation Form Validation Class | |
**/ | |
class CI_Controller{} |
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
(defn in-fizz-buzz [i] | |
(condp #(= (mod %2 %1) 0) i | |
15 "Fizz Buzz" | |
3 "Fizz" | |
5 "Buzz" | |
i)) |
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 skinny.validator | |
import org.scalatest._ | |
import org.scalatest.matchers._ | |
class numericSpec extends FlatSpec with ShouldMatchers { | |
behavior of "numeric" | |
it should "be available" in { |
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
<?php | |
class Test{} | |
$test1 = new Test(); | |
$test2 = new Test(); | |
//-> 別オブジェクトなのでfalse | |
var_dump($test1 === $test2); |
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
//複数のレコードを一つのInsert文で投入 | |
INSERT INTO example VALUES | |
(100, 'Name 1', 'Value 1', 'Other 1'), | |
(101, 'Name 2', 'Value 2', 'Other 2'), | |
(102, 'Name 3', 'Value 3', 'Other 3'), | |
(103, 'Name 4', 'Value 4', 'Other 4'); | |
//4つのInsert文を一度のクエリで投入 | |
INSERT INTO example VALUES (100, 'Name 1', 'Value 1', 'Other 1'); | |
INSERT INTO example VALUES (101, 'Name 2', 'Value 2', 'Other 2'); |
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 skinny.task.generator | |
import scalikejdbc.config.{ DBsWithEnv, TypesafeConfigReaderWithEnv } | |
import scalikejdbc._ | |
import java.sql.{ Types => JavaSqlTypes } | |
import scalikejdbc.mapper._ | |
import java.util.Locale.{ ENGLISH => en } | |
object ReverseEngineering extends ReverseEngineering | |
/** |
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 object mail { | |
implicit def stringToSeq(single: String): Seq[String] = Seq(single) | |
implicit def liftToOption[T](t: T): Option[T] = Some(t) | |
sealed abstract class MailType | |
case object Plain extends MailType | |
case object Rich extends MailType | |
case object MultiPart extends MailType |
NewerOlder