Skip to content

Instantly share code, notes, and snippets.

@mayblue9
mayblue9 / colorbrewer_interpolate.js
Created September 27, 2016 04:56 — forked from cpbotha/colorbrewer_interpolate.js
ColorBrewer sequential single hue scales vs. d3 interpolators.
// comparison of different d3 colour interpolators with
// colorbrewer sequential single-hue scales
//
// -- http://twitter.com/cpbotha
var numC = 9;
var data = d3.range(numC);
var showColourInterpolations = function(name, cbMap) {
var rectHeight = 50,
@mayblue9
mayblue9 / joy-of-clojure-ch3.clj
Created September 17, 2016 10:59 — forked from noahlz/joy-of-clojure-ch3.clj
Code from Joy of Clojure, chapter 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; 3.2 Nil pun with care
(defn print-seq [s]
(when (seq s)
(prn (first s))
(recur (rest s))))
;; #'user/print-seq
(print-seq [1 2])
@mayblue9
mayblue9 / letter.md
Created August 22, 2016 05:53 — forked from cornchz/letter.md
김진수 교수님이 랩 사람들에게 보낸 메일

Weekly reports만 올라오니 너무 썰렁해지는 것 같아서..

대학원 생활을 하는 여러분에게 평소에 하고 싶었던 말 몇 가지를 적어봅니다.

Computer Science/Engineering 연구

물리학, 화학, 수학과 같은 자연과학은 신이 만들어 놓은 자연의 이치를 깨닫고자 하는 학문입니다. 진짜 신이 수소, 산소, 질소 등등의 각종 원소를 이용해서 물질을 만들게 하셨는지는 아무도 모릅니다. 단지 과학자들이 하는 일은 현상을 잘 설명할 수 있는 그럴듯한 가설을 만들고 그것이 현상을 제대로 설명하는지를 확인하는 일을 반복할 뿐입니다. 따라서 자연과학에는 "왜?" 그렇게 되었는지에 대해서 물을 필요도 없고, 단지 발견과 경탄만이 존재할 뿐입니다.

그러나 우리가 업으로 삼고 있는 computer science 혹은 computer engineering 분야는 신이 만든 것이 아니라 사람이 만들어 놓은 computer system을 학문의 대상으로 합니다. 따라서, 자연과학과는 본질적으로 학문의 성격이 틀릴 수 밖에 없습니다. Computer science에서의 연구는 어떻게 돌아가는지 "발견"을 하는 연구가 아니라, "왜" 그렇게 만들었는지를 알아내고, "어떻게 하면" 더 잘 만들 수 있을까 위주로 연구가 이루어지게 됩니다. 몇몇 사람들에게 이미 우스개소리로 말한 바 있지만, 결국 연구의 시작은 남이 한 일에 대해서 트집을 잡는 것부터 시작되는 것입니다. 논문을 하나 읽으면, 그 논문의 아이디어는 무엇인지, 어떻게 자신의 아이디어가 좋다고 설득을 했는지, 그리고 문제점이나 제한점은 무엇인지 분석하는 습관을 항상 들이기 바랍니다. 이러한 것을 생각해 보지 않는다면, 아무리 많은 논문을 읽어도 연구에 별 도움이 되지 않습니다. (영어에는 도움이 됨)

@mayblue9
mayblue9 / hasse_boole.csv
Created August 17, 2016 05:24 — forked from emeeks/hasse_boole.csv
Boole Hasse Diagram
source target
FALSE p&q
FALSE p&¬q
FALSE ¬p&q
FALSE ¬p&¬q
p&q p
p&q q
p&q p IFF q
p&¬q p
p&¬q p IFF ¬q
@mayblue9
mayblue9 / bot taxonomy.md
Created August 12, 2016 03:38 — forked from sepans/bot taxonomy.md
Draft spec 0.3 for a bot taxonomy (see also http://i.imgur.com/bKXNQ0V.png) #botALLY

Source: https://gist.github.com/tullyhansen/7621632

Towards a Taxonomy of Twitter Bots

Intro

  • towards a definition - autonomous non-human agents on Twitter
  • critical thinking - MECE, rabbit rule, holding hands
  • patterns of behaviour, rather than content
  • Twitter largely a textual medium
@mayblue9
mayblue9 / edgelist2.csv
Created August 8, 2016 04:33
arc_test2
source target weight
sam tully 3
sam pat 8
sam kim 2
sam pris 1
roy pris 5
roy sam 1
tully sam 1
tully pris 5
tully kim 3
source,target,weight
sam,tully,3
sam,pat,8
sam,kim,2
sam,pris,1
roy,pris,5
roy,sam,1
tully,sam,1
tully,pris,5
tully,kim,3
@mayblue9
mayblue9 / mecab-ya.js
Created August 4, 2016 08:11 — forked from golbin/mecab-ya.js
mecab-ya examples
var mecab = require('mecab-ya');
var text = '아버지가방에들어가신다';
mecab.pos(text, function (err, result) {
console.log(result);
/*
[ [ '아버지', 'NNG' ],
[ '가', 'JKS' ],
[ '방', 'NNG' ],
@mayblue9
mayblue9 / .block
Created August 3, 2016 07:45 — forked from jonsadka/.block
Stretched Chord - The Final Result
height: 660
@mayblue9
mayblue9 / index.html
Created August 2, 2016 08:41 — forked from michael/index.html
Matrix Layout (Michael Aufreiter)
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="matrix.js"></script>
<style type="text/css">
rect.cell {
fill: red;