View index_test1.html
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> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
</head> | |
<body> |
View cal.py
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/bin/env python | |
def is_uru (year): | |
if year % 4 == 0: | |
if year % 400 == 0: | |
return True | |
elif year % 100 == 0: | |
return False | |
return True | |
return False |
View wareki.py
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/bin/env python | |
# -*- coding: utf_8 -*- | |
def yearToWareki (year): | |
r""" | |
result: tuple [('元号', 年, 日数), ('元号', 年, 日数)] | |
2つ目の要素はほぼないが、変わり目の時にある | |
""" | |
# 明治元年: 1868 | |
# 明治45年: 1912 (~7/29) |
View for.c
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
/* gcc -std=c99 -o for for.c | |
* | |
* -std=c99 で c99 文法としてコンパイル | |
* ex: http://seclan.dll.jp/c99d/ | |
*/ | |
#include <stdio.h> | |
int | |
main (void) | |
{ |
View MAMPcwd
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
#!/bin/sh | |
# -*- coding: utf_8 -*- | |
# | |
# MAMPcwd (start|stop|cwd) | |
# MAMP のコマンドライン補佐ツール | |
# | |
# start: 再起動/起動をします | |
# stop : 停止します | |
# cwd : コマンドを実行したディレクトリをDocumentRootにして、再起動をします | |
# |
View gist:4585010
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
1> lists:sum([X || X <- lists:seq(1, 999), X rem 3 == 0 orelse X rem 5 == 0]). | |
233168 |
View form.php
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
<?php | |
$form = ""; | |
function write ($temp) { | |
$path = "temp.txt"; | |
$fp = fopen($path, "a"); | |
if ($fp) { | |
$time = time(); | |
fwrite($fp, "$time\t$temp\n"); | |
fclose($fp); |
View gist:5282873
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
メモ書き | |
---------- | |
Xdebug: | |
------ | |
Xdebug 2012.06.13 Changelog | |
=========================== |
View shiritori.scala
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
/** | |
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0225 | |
* | |
* 回文問題 | |
* | |
* #scala_kansai_beginners | |
*/ | |
var buff = List( | |
"apple", |
View .tmux.conf
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
set-option default-shell /bin/zsh | |
# Prefix | |
set-option -g prefix C-z | |
# 日本語環境なら必須?? | |
setw -g utf8 on | |
set -g status-utf8 on | |
# status |
OlderNewer