- 鈴木健太 (@suzu_v) と申します
- 株式会社VOYAGE GROUP
- 新卒2年目です
- アドテクノロジー関連事業をしています
- 普段はcosmiというデータをマネジメントするプラットフォームを開発しています
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
<?php | |
/** | |
* | |
*/ | |
class testTriangle extends PHPUnitTestCase | |
{ | |
public function set_up() | |
{ | |
} |
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
<?php | |
/** | |
* 三角形の判定 | |
*/ | |
function triangle($a, $b, $c){ | |
if (!isValid($a) || !isValid($b) || !isValid($c)){ | |
return false; | |
} | |
if (!isTriangle($a, $b, $c)) { |
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
<?php | |
require_once 'triangle.php'; | |
class TriangleTest extends PHPUnit_Framework_TestCase | |
{ | |
public function setUp() | |
{ | |
echo "hoge"; | |
} |
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
class TLU: | |
def __init__(self, threshold, weights): | |
self.threshold = threshold | |
self.weights = weights | |
pass | |
def fire(self, inputs): | |
t = 0 | |
t = sum([self.weights[i] for i in range(len(self.weights)) if inputs[i] is True]) |
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
(use slib) | |
(require 'trace) | |
(define (factorial n) | |
(define (factorial n) | |
(if (= n 1) | |
1 | |
(* n (factorial (- n 1))))) | |
(factorial n)) | |
(trace factorial) |
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
[alias] | |
# http://oli.jp/2012/git-powerup/ | |
# http://blog.blindgaenger.net/advanced_git_aliases.html | |
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort | |
b = branch -a | |
br = browse-remote | |
ci = commit | |
co = checkout | |
d = diff | |
dc = diff --cached |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(1) | |
for i := 0; ; 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
package main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
rec := make([][]uint8, dy) | |
for i := 0; i < len(rec); i++ { | |
x := make([]uint8, dx) |