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
(custom-set-variables | |
'(org-display-custom-times t) | |
'(org-time-stamp-custom-formats (cons (concat "<%Y/%m/%d " (substring (current-time-string) 0 3) ">") | |
(concat "<%Y/%m/%d " (substring (current-time-string) 0 3) " %H:%M>"))) | |
) | |
;;; 訂正版 | |
(custom-set-variables | |
'(org-time-stamp-custom-formats (quote ("<%Y/%m/%d %a>" . "<%Y/%m/%d %a %H:%M>"))) | |
) |
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
var links = document.getElementsByTagName("a"); | |
for ( var i = 0 ; i < links.length ; i++ ){ | |
(function() { | |
var n = i; | |
var link = links[i]; | |
link.href = "#"; | |
link.onclick = function(){ alert( n ) }; | |
link.innerHTML = n; | |
})() |
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 -*- | |
class Player | |
attr_reader :position | |
# Cで言うenum的なやつ | |
module MOVING_MODE | |
NORMAL = 1 | |
FAST = 2 | |
KANI = 3 #蟹モードが増えた | |
end |
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 -*- | |
class Player | |
class Normal | |
# move の内容をもってきて、いらない caseを削除 | |
# return を追加 | |
# x_speed, y_speed を展開すれば 03のコードに向う | |
def move(direction, position) | |
x_speed = 10 | |
y_speed = 10 |
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
/* | |
* Adds the serialNumber property to the UIDevice class | |
* | |
* The implementation uses undocumented (for iOS) IOKit functions, | |
* so handle with caution and be prepared for nil. | |
*/ | |
#import <UIKit/UIDevice.h> | |
@interface UIDevice (serialNumber) |
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
def random_problem(n) | |
a = [*1..5] | |
a.product(a) | |
.shuffle[0..n] | |
.each do |e0, e1| | |
puts "$#{e0} + #{e1} = $ \n\n \\vfill" | |
end | |
end |
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 | |
namespace RadioControllerCar; | |
/* ラジコンの抽象クラス */ | |
interface CarInterface | |
{ | |
public function send($message); | |
} |