Skip to content

Instantly share code, notes, and snippets.

<html lang="en">
<head>
<title>Plot Sample - Line</title>
<link rel='stylesheet' href="https://rawgit.com/domitry/elegans/master/examples/common.css">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.4/d3.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/domitry/elegans/master/release/elegans.min.js"></script>
<script type="text/javascript">
window.onload = function(){
var STEP_NUM = 10000;
<html lang="en">
<head>
<title>Plot Sample - Line</title>
<link rel='stylesheet' href="https://rawgit.com/domitry/elegans/master/examples/common.css">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.4/d3.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/domitry/elegans/master/release/elegans.min.js"></script>
<script type="text/javascript">
window.onload = function(){
var STEP_NUM = 10000;
<html lang="en">
<head>
<title>Plot Sample - Line</title>
<link rel='stylesheet' href="https://rawgit.com/domitry/elegans/master/examples/common.css">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.4/d3.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/domitry/elegans/master/release/elegans.min.js"></script>
<script type="text/javascript">
window.onload = function(){
var STEP_NUM = 10000;
[39] pry(main)> module Hoge
[39] pry(main)* module ClassMethods
[39] pry(main)* def hoge
[39] pry(main)* @@hoge = 1
[39] pry(main)* end
[39] pry(main)* end
[39] pry(main)* def self.included(cls)
[39] pry(main)* cls.extend ClassMethods
[39] pry(main)* end
[39] pry(main)* end
@domitry
domitry / gpa.rb
Created March 4, 2015 15:50
じーぴーえー (阪大koanフォーマット)
# -*- encoding: utf-8 -*-
require "csv"
path = ARGV[0]
csv = CSV.read(path, headers: true, encoding: "Shift_JIS:UTF-8")
column = csv["評語"]
column.delete("欠席")
sum = column.reduce(0) do |memo, alphabet|
;; ~/elisp をライブラリパスに追加
(setq load-path
(append
(list
(expand-file-name "~/elisp/")
)
load-path))
;; indent setting
(setq-default tab-width 4 indent-tabs-mode nil)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def replace_val(arr)
rule = {
hoge: [1, 2, 1],
nya: [2, 3, 4],
hoe: [1, 2, 3]
}
return arr.map{|label| rule[label]}
end
replace_val([:hoge, :nya, :nya, :hoe])

The Mikon Project

Naoki Nishida

The Mikon Project provides an useful interface to tools for data analysis like Statsample and ones for visualization like Nyaplot.

The summary of works during the grant period is shown as below:

  • New DataFrame gem Mikon has become available
  • Bidirectional communication between IRuby kernel and JavaScript front-end has been implemented
  • Plotting library Nyaplot has been totally re-designed and the interactive analysis with GUI on IRuby is now available