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
import UIKit | |
class Fraction { | |
var n: Int | |
var d: Int | |
init(numerator: Int, denominator:Int) { | |
self.n = numerator | |
self.d = denominator | |
} |
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://localhost:50030 |
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://localhost:50070 |
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
$ sudo /etc/init.d/hadoop-0.20-datanode start | |
$ sudo /etc/init.d/hadoop-0.20-jobtracker start | |
$ sudo /etc/init.d/hadoop-0.20-namenode start | |
$ sudo /etc/init.d/hadoop-0.20-secondarynamenode start | |
$ sudo /etc/init.d/hadoop-0.20-tasktracker start |
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
$ su - | |
$ wget http://archive.cloudera.com/one-click-install/squeeze/cdh3-repository_1.0_all.deb | |
$ dpkg -i cdh3-repository_1.0_all.deb | |
$ touch /etc/apt/sources.list.d/cloudera.list | |
$ echo deb http://archive.cloudera.com/debian lucid-cdh3 contrib >> /etc/apt/sources.list.d/cloudera.list | |
$ echo deb-src http://archive.cloudera.com/debian lucid-cdh3 contrib >> /etc/apt/sources.list.d/cloudera.list | |
$ wget -q http://archive.cloudera.com/debian/archive.key -O- | apt-key add - | |
$ apt-get update | |
$ apt-get install hadoop-0.20 hadoop-0.20-native | |
$ apt-get install hadoop-0.20-conf-pseudo |
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
- (void)visit { | |
float x = 0; | |
float y = 150; | |
float width = 320; | |
float height = 180; | |
glEnable(GL_SCISSOR_TEST); | |
if([[CCDirector sharedDirector] enableRetinaDisplay:YES]) { | |
glScissor(2 * x, 2 * y, 2 * width, 2 * height); | |
} else { |
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
CCSprite *sprite = [CCSprite spriteWithFile:(NSString *) rect:(CGRect)]; |
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
$ git clone git://github.com/JugglerShu/XVim.git |
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
$(function(){ | |
//関数として定義 | |
$.fn.hoverAnimation = function() { | |
//付加するクラス名 | |
var className = "hover"; | |
$(this).mouseover(function(){ | |
//第一引数:付加するクラス名、第二引数:スピード(ミリ秒) | |
$(this).not(":animated").addClass(className, 200); | |
}).mouseout(function(){ | |
$(this).removeClass(className, 180); |
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
/* マウスオーバー前のスタイル */ | |
div.jquery_ui_example { | |
background-color: #17acc7; | |
color: #f5e31b; | |
padding: 5px; | |
} | |
/* マウスオーバー後のスタイル */ | |
div.jquery_ui_example.hover { | |
background-color: #f5b01b; | |
color: #d54039; |
NewerOlder