前回のコミットから何も変更を加えていない状態。
$ git status
# On branch masternothing to commit, working directory clean
エディタでファイルを編集する
| newcomers <- c("おっくん", "きたけー", "ぐっさん", "たけお") | |
| sample(newcomers) |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use List::Util qw(shuffle); | |
| my @name_list = qw(okkun kitak keoken gussan); | |
| print join ', ', shuffle @name_list; |
| var freshers = ["おっくん", "ぐっさん", "たけお", "きたけー"]; | |
| freshers.shuffle = function () { | |
| var i = this.length; | |
| var j = 0; | |
| var tmp = ""; | |
| while(i) { | |
| j = Math.floor(Math.random()*i); | |
| i--; | |
| tmp = this[i]; |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'cinch' | |
| require 'open-uri' | |
| require 'json' | |
| require 'time' | |
| bot = Cinch::Bot.new do | |
| configure do |c| |
この記事は、lispリーダーマクロアドベントカレンダー の4日目の記事です。 タイトルにある通り、Clojure でのリー ダーマクロについて取り扱います(対象とする Clojure のバージョンは 1.4)。
| """ | |
| Three ways of computing the Hellinger distance between two discrete | |
| probability distributions using NumPy and SciPy. | |
| """ | |
| import numpy as np | |
| from scipy.linalg import norm | |
| from scipy.spatial.distance import euclidean |