(Moved from http://jsdo.it/cat_in_136/vRONES6 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1 | |
jA0ECQMC/XZZrofwlJhg0u0BNEMqSnxdB8NJcFstYl2Korm8jQNz6LLXItIHKSlN | |
g2ZiBuo7YAPO+dGDuFkac6jUqoFY2aLBI8kRGQLUii22vQmR9bD9k+mpWkLBak7z | |
5m+kEjzQbo/9aNgrvpgDZ4U8cxP13nhyWkSjsfOSeAhGOGxLSiDnp/TlfZRjscRL | |
WF+1KFUKGL0sjAqXVkEdMe6PNCbQlozIyfSlFxJy4axtD4bL6BHsKxwYgKTorNOP | |
sEOUPfe9E06hLVOwlOVZ8oyYzpV7WX3YwwLC0c1TE35jrjuXwnCER0RTFlvbdCFr | |
DOMdIMrKEIEtfK+6n5AR/ojN4fdoORH7NQTG1OBiigkHVylBgMTxGOU5KMgE9526 | |
c17aBmFwMTSatx565FqEpibRNvQr5lBHCOl3Ep0vPIX0pzTYFUel0RU3+3ZuFWvg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'webrick' | |
server = WEBrick::HTTPServer.new( | |
:ServerSoftware => nil, | |
:BindAddress => '0.0.0.0', | |
:Port => 80, | |
:Logger => WEBrick::Log.new($stderr, WEBrick::Log::DEBUG), | |
:AccessLog => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bundle | |
vendor/bundle | |
*~ | |
*.swp |
(moved from http://jsdo.it/cat_in_136/xtDC )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Child < ActiveRecord::Base | |
belongs_to :parent | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="ms-settings:personalization"></iframe> | |
<!-- On MS Edge, the setting window is suddenly opened just after opening this file. --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
grunt.initConfig({ | |
browserify: { | |
dist: { | |
files: { | |
"bundle.js": "index.js" | |
}, | |
options: { | |
require: [ | |
"p-promise", |
My answer to Santiago's post : "Five programming problems every Software Engineer should be able to solve in less than 1 hour"
Note:
- I spent about an hour and a half on five problems.
- I have no idea how to solve problem 4 and problem 5 with low complexity. So I have solved problem 4 and problem 5 using *brute-force" algorithm.
- 独立行政法人農業環境技術研究所が開発・運営する歴史的農業環境閲覧システムによって電子媒体公開されている「東京図測量原図」から手動トレースで作成。
- 本データは無保証であり、当該データが原因で発生した損害等について、補償等は一切おこなわない