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
class ChangeLocation{ | |
static void main(args){ | |
if (args.size()==2) { | |
println "config.xmlを読込み、SVNサーバーのロケーションを書き換えます。" | |
println "置換前:"+ args[0] | |
println "置換後:"+ args[1] | |
println "JOB完了後、Jenkinsの管理から設定の再読み込みを行なってください。" | |
new File("C:/Jenkins/jobs/").eachFile { | |
def target = it.toString()+"\\config.xml" |
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 TARGET_URL = "https:\/\/www\.skipaas\.com\/"; | |
(function(){ | |
function deathStar(elem){ | |
var children = elem.childNodes; | |
var child; | |
for(var i=0; i < children.length; i++){ | |
child = children.item(i); | |
if(child.nodeType == 3){ // テキストノード | |
child.nodeValue = child.nodeValue.replace(/☆/g, "。"); |
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
class Hoge | |
def value=(value) | |
@value = value | |
end | |
def value | |
@value | |
end | |
end | |
hoge = Hoge.new | |
hoge.value= 'x' |
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
class Foo | |
# attr_*はModuleのprivate methodなので、レシーバは省略する | |
# ClassはModuleを継承していて、FooはClassを継承している | |
# ので、Moduleのprivate methodのattr_accessorがFooの中で利用可能 | |
attr_accessor :value | |
end | |
foo = Foo.new | |
foo.value = 'z' | |
puts foo.value #=> z |
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> | |
<head> | |
<title>Pie Chart</title> | |
<meta name = "viewport" content = "initial-scale = 1, user-scalable = no"> | |
</head> | |
<body> | |
<canvas id="canvas" height="450" width="450"></canvas> | |
<button type="button" onclick="createPDF()">Create PDF</button> | |
<iframe frameborder="0" width="450" height="450"></iframe> |
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
# encoding: utf-8 | |
require 'net/http' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
GITHUB_URL = "https://github.com" | |
WIKI_URL = GITHUB_URL + "/" + "mbostock/d3/wiki/" | |
API_URL = WIKI_URL + "API-Reference" |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Selection</title> | |
</head> | |
<body> | |
<div id="text"> | |
<p>Hello! D3.js</p> | |
</div> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Data Binding</title> | |
</head> | |
<body> | |
<div id="fruits"> | |
<p>リンゴ</p> | |
<p>オレンジ</p> |
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
<?xml version="1.0"?> | |
<settings> | |
<console> | |
<colors> | |
<color id="0" r="240" g="215" b="192"/> | |
<color id="1" r="38" g="139" b="210"/> | |
<color id="2" r="133" g="153" b="0"/> | |
<color id="3" r="42" g="161" b="152"/> | |
<color id="4" r="220" g="50" b="47"/> | |
<color id="5" r="211" g="54" b="130"/> |
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
species | year | ha | kg | t | |
---|---|---|---|---|---|
Sweet potato | 1980 | 64800 | 2030 | 1317000 | |
Sweet potato | 1981 | 65000 | 2240 | 1458000 | |
Sweet potato | 1982 | 65700 | 2110 | 1384000 | |
Sweet potato | 1983 | 64800 | 2130 | 1379000 | |
Sweet potato | 1984 | 64600 | 2170 | 1400000 | |
Sweet potato | 1985 | 66000 | 2310 | 1527000 | |
Sweet potato | 1986 | 65000 | 2320 | 1507000 | |
Sweet potato | 1987 | 64000 | 2220 | 1423000 | |
Sweet potato | 1988 | 62900 | 2110 | 1326000 |
OlderNewer