This file contains 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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="description" content="誰でもできる、美味しいカレーの作り方です。"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<h1>カレーのレシピ</h1> |
This file contains 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
; (N-queen 7 '((2 3) (4 6))) => ((7 7) (6 2) (5 4) (3 1) (1 5) (2 3) (4 6)) | |
(define (N-queen N ini-points) | |
(define (delete-l lst target) | |
(if (null? lst) target | |
(delete-l (cdr lst) (delete (car lst) target)))) | |
(define (ok? x y his) | |
(let loop ((his his)) | |
(cond ((null? his) #t) | |
((= (abs (- x (caar his))) | |
(abs (- y (cadar his)))) |
This file contains 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/local/bin/gosh | |
(add-load-path "." :relative) | |
(use gauche.parseopt) | |
(use file.util) | |
(use rfc.http) | |
(use sxml.sxpath) | |
(load "htmlprag.scm") | |
(define SERVER "projecteuler.net") |
This file contains 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
# coding: utf-8 | |
require 'rubygems' | |
require 'sinatra' | |
require 'open-uri' | |
require 'rexml/document' | |
helpers do | |
include Rack::Utils; alias_method :h, :escape_html | |
end |
NewerOlder