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
;; auto-installによってインストールされるEmacs Lispをロードパスに加える | |
;; デフォルトは ~/.emacs.d/auto-install/ | |
(add-to-list 'load-path "~/.emacs.d/auto-install/") | |
(require 'auto-install) | |
;;(setq auto-install-use-wget nil) | |
(setq auto-install-use-wget t) | |
;; 起動時にEmacsWikiのページ名を補完候補に加える | |
(auto-install-update-emacswiki-package-name t) | |
;; install-elisp.el互換モードにする |
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
<!DOCTYPE> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Google Maps</title> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=true&language=ja"></script> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<style type="text/css"> | |
#map { |
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
<?php | |
require_once '/tests/Part1/CardManager.php'; | |
class CardTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @dataProvider getDealCard | |
*/ | |
public function testDeal($deal_num, $card, $expect) |
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
<?php | |
class CardManager { | |
/** | |
* | |
* @param integer $deal_num | |
* @param String $card | |
* | |
* @return array |
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
Host passAllow | |
User user_name | |
HostName host_name | |
PubkeyAuthentication no | |
PasswordAuthentication yes # default | |
Host keyOnly | |
User user_name | |
HostName host_name | |
PubkeyAuthentication yes # default |
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
# 少し凝った zshrc | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# 色を使用出来るようにする | |
autoload -Uz colors | |
colors |
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
;; 1.1.2 | |
(define size 2) | |
(* 5 size) | |
(define pi 3.14159) | |
(define radius 10) | |
(* pi (* radius radius)) |
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
myLast :: [a] -> Maybe a | |
myLast [] = Nothing | |
myLast (x:[]) = Just x | |
myLast (x:xs) = myLast xs | |
{- | |
myLast :: [a] -> a | |
-- myLast [] = | |
myLast (x:[]) = x | |
myLast (x:xs) = myLast xs |
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
myButLast :: [a] -> a | |
-- myButLast [] = | |
-- myButLast (x:y:[]) = x | |
myButLast [x,y] = x | |
myButLast (_:x:xs) = myButLast (x:xs) |
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
elementAt :: [a] -> Int -> a | |
elementAt xs d = xs !! (d - 1) |
OlderNewer