Skip to content

Instantly share code, notes, and snippets.

Nebuta nebuta

  • Japan
Block or report user

Report or block nebuta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View data.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 52 columns, instead of 44. in line 6.
番号,設置形態,大学名,,平成30年度大学入学者選抜,,,,,,,,平成29年度大学入学者選抜,,,,,,,,平成28年度大学入学者選抜,,,,,,,,平成27年度大学入学者選抜,,,,,,,,平成26年度大学入学者選抜,,,,,,,,平成25年度大学入学者選抜,,,,,,,
,,,,受験者数,,,合格者数,,,合格率(合格者数/受験者数),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性,男性,女性,計,男性,女性,計,男性,女性
1,国立,北海道大学,合計,254,77,331,87,17,104,34%,22%,259,71,330,80,22,102,31%,31%,266,105,371,78,25,103,29%,24%,222,68,290,82,20,102,37%,29%,254,76,330,83,19,102,33%,25%,242,89,331,75,28,103,31%,31%
1,国立,北海道大学,うち18歳以下,122,44,166,34,11,45,28%,25%,119,28,147,35,7,42,29%,25%,123,51,174,37,9,46,30%,18%,98,35,133,35,11,46,36%,31%,101,42,143,37,14,51,37%,33%,100,42,142,36,9,45,36%,21%
1,国立,北海道大学,うち19歳,73,18,91,41,5,46,56%,28%,74,20,94,34,13,47,46%,65%,58,27,85,24,11,35,41%,41%,52,14,66,26,7,33,50%,50%,61,14,75,21,2,23,34%,14%,59,30,89,22,14,36,37%,47%
1,国立,北海道大学,うち20歳,23,3,26,8,0,8,35%,0%,23,11,34,4,1,5,17%,9%,30,11,41,13,4,17,43%,36%,24,5,29,13,1,14,54%,20%,34,10,44,14,2,16,41%,20%
View stat_test.py
import csv
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import rc
font = {'family':'IPAexGothic'}
rc('font', **font)
@nebuta
nebuta / gaussian.scala
Created Nov 1, 2015
2D Gaussian function in Scala
View gaussian.scala
import scala.math._
def gauss(dim: Int, sigma: Float): Array[Array[Float]] = {
if(dim%2==0)
throw new Exception("dim must be odd.")
val arr = Array.fromFunction(i=>{
Array.fromFunction({j=>
val x = (i - (dim-1)/2).toFloat
val y = (j - (dim-1)/2).toFloat
(exp(-1 * pow(x/sigma,2)) * exp(-1 * pow(y/sigma,2))).toFloat
@nebuta
nebuta / read_csv.rs
Last active Oct 1, 2015
Reading a CSV file in Rust 1.3
View read_csv.rs
extern crate csv;
extern crate rustc_serialize;
#[derive(RustcDecodable,Debug)]
struct Record {
id: i32,
x: f32,
y: f32,
}
@nebuta
nebuta / square.purs.js
Created Sep 29, 2014
JavaScript generated by PureScript compiler
View square.purs.js
var PS = PS || {};
PS.Prelude = (function () {
"use strict";
function Show(show) {
this.show = show;
};
function Num($percent, $times, $plus, $minus, $div, negate) {
this["%"] = $percent;
this["*"] = $times;
this["+"] = $plus;
@nebuta
nebuta / circles.elm
Created Sep 3, 2014
Circles zooming
View circles.elm
import Mouse
main = lift scene v
scene : Float -> Element
scene v = collage 600 600 (objs v ++ [
toForm <| plainText (show v)])
objs : Float -> [Form]
objs factor = map (render factor) <| filter (pred factor) [30,20,10,5]
@nebuta
nebuta / bouncing.elm
Last active Aug 29, 2015
Bouncing ball
View bouncing.elm
main = lift scene state
state = foldp step initial (fps 60)
initial = State 0 -70 100 8 0
data State = State Float Float Float Float Float
scene (State t x y vx vy) = collage 400 400 [box, ball x y]
@nebuta
nebuta / d3.scala
Created Jul 3, 2014
d3.scala generated by importer
View d3.scala
import scala.scalajs.js
import js.annotation._
package importedjs {
package D3 {
trait Selectors extends js.Object {
def select(selector: js.String): Selection = ???
@nebuta
nebuta / d3.scala.diff
Created Jul 3, 2014
Diff of d3.scala
View d3.scala.diff
--- src/main/scala/D3/d3.scala 2014-07-03 13:59:52.000000000 -0700
+++ ../scala-js-ts-importer/d3.original.scala 2014-07-03 14:34:04.000000000 -0700
@@ -1,11 +1,10 @@
-
-package D3 {
-
import scala.scalajs.js
import js.annotation._
-import org.scalajs.dom._
@nebuta
nebuta / d3.scala
Last active Aug 29, 2015
D3.scala
View d3.scala
package D3 {
import scala.scalajs.js
import js.annotation._
import org.scalajs.dom._
import js._
trait Selectors extends js.Object {
def select(selector: js.String): Selection = ???
def select(element: EventTarget): Selection = ???
You can’t perform that action at this time.