Skip to content

Instantly share code, notes, and snippets.

View nikezono's full-sized avatar

nikezono nikezono

View GitHub Profile
class Value < Struct.new(:value)
def reducible?
return false
end
def to_s
return value.to_s
end
def inspect
@nikezono
nikezono / hatenabookmark2scrapbox.js
Created January 15, 2019 01:09
convert atom exported by hatena-bookmark to json which can import to scrapbox
const fs = require('fs');
const FeedParser = require('feedparser');
const FILEPATH = process.argv[2];
if (!FILEPATH) {
console.error('Invalid argument: must be node feed2scrapbox.js [FILEPATH]');
process.exit(1);
}
@nikezono
nikezono / sysperf6.md
Last active May 19, 2017 05:07
system performance

System Performance #6: CPU

work in progress.

@nikezono の読みながらメモ 兼 輪読会の補足資料.

私はペーペーの素人なのでおおいに誤りを含む. マサカリは歓迎

6.1 用語

@nikezono
nikezono / app.coffee
Created June 24, 2015 08:10
シンプルな性的ファイル配信サーバ
# Node.js API
path = require 'path'
fs = require 'fs'
# NPM modules
express = require 'express'
stream = require 'connect-stream'
app = express()
/*
* Copyright (C) 2008-2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

WebSocketについて最近思ったこと

@nikezono
中園 翔
慶應大学増井研究室4年

話すこと

Reactive Programmingのススメ

@nikezono
中園 翔
慶應大学増井研究室4年

話すこと

@nikezono
nikezono / gist:6652924
Last active December 23, 2015 14:59 — forked from kmizu/gist:1876800

Scala 開発環境構築手順

前提条件

  • JDKがinstall済みであること
  • java コマンドに環境変数Pathが通っていること
@nikezono
nikezono / bogosort.coffee
Created May 14, 2013 11:21
Sort Alghorisms
sample = require './sample.json'
###
Bogosort
「無作為に数列を並べて、ソートができていれば終わり」
停止性は無限の猿定理により保証される
無限の猿定理:
ランダムに文字列を作り続ければ、
どんな文字列もいつかはできあがるという定理
###