- sassではなくSPSS
- modeler加工がしやすい
- 統計的な方ではstatictics(stats)
- 実際はmodelerで十分
- 今の段階ではよく、SQLでの加工でも良い
- Rと連携できる(modeler)
- 値段の違いもある
- modelerの解説本はほぼない
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 random | |
| def my_insertion_sort(nums): | |
| for i in range(len(nums)-1): | |
| num = False | |
| idx = -1 | |
| target = i + 1 | |
| for j in range(target): |
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
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ] |
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 sys | |
| import requests | |
| import subprocess | |
| def main(): | |
| """ | |
| guthub apiを使ってフォークしていないリポジトリをCloneし、 | |
| アカウントと違うコミッターが含まれるリポジトリを残す。 | |
| http://developer.github.com/v3/ |
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
| console.log(111); | |
| // Deep copy | |
| var logger = {}; | |
| var test = $.extend(true, logger, console); | |
| console.log(test); | |
| test.log.apply(console, ['message']); | |
| //test.log(222); | |
| // Shallow copy | |
| // var newObject = jQuery.extend({}, oldObject); |
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
| library(igraph) | |
| #エッジ | |
| d <- data.frame(read.delim( | |
| "./relation.tsv", | |
| sep="\t", | |
| stringsAsFactors=FALSE, | |
| header=FALSE, | |
| na.strings="" | |
| ), stringsAsFactors=FALSE) |
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
| #!/bin/sh | |
| cat a.log | awk 'NR<=7 { if ( $1 ~ /^[0-9]+$/ ) { print$1 } }' | sort | uniq | wc -l |
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
| #!/bin/sh | |
| if [ ! -d "$HOME/bin" ]; then mkdir "$HOME/bin"; fi | |
| cd ~/bin | |
| curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
| chmod a+x kerl | |
| # http://qiita.com/tatsuya6502/items/f15da8ea6e793c5038a2 | |
| # https://gist.github.com/voluntas/8911384#%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%89%E3%81%8B%E3%82%89%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB | |
| # 上記2つの共通点 |
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 | |
| $fp = fopen("php://stdin", "r"); | |
| $in = ''; | |
| while($in != "quit") { | |
| echo "php> "; | |
| $in=trim(fgets($fp)); | |
| eval ($in); | |
| echo "\n"; | |
| } |
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
| 1.3351578377717581 | |
| 1.4142135623730951 | |
| loop:4980, diff:0.01000, z:1.419186346344104 | |
| 1.419186346344104 | |
| Program exited. |