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
FROM httpd:2.4 | |
COPY ./public-html/ /usr/local/apache2/htdocs/ | |
COPY ./server.crt /usr/local/apache2/conf/ | |
COPY ./server.key /usr/local/apache2/conf/ | |
RUN sed -i \ | |
-e 's/^#\(Include .*httpd-ssl.conf\)/\1/' \ | |
-e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' \ | |
-e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' \ | |
conf/httpd.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
FROM httpd:2.4 | |
COPY ./public-html/ /usr/local/apache2/htdocs/ | |
COPY ./server.crt /usr/local/apache2/conf/ | |
COPY ./server.key /usr/local/apache2/conf/ | |
RUN sed -i \ | |
-e 's/^#\(Include .*httpd-ssl.conf\)/\1/' \ | |
-e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' \ | |
-e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' \ | |
conf/httpd.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
const puppeteer = require('puppeteer'); | |
(async () => { | |
// ブラウザ起動 | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
// ヤフーのページを開く | |
await page.goto('https://www.yahoo.co.jp/'); | |
// ヤフーページ内でニュースの一覧を取得する Javascript を実行する |
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 java.time.Duration; | |
class Hoge { | |
public static void main(String[] args) { | |
Duration d1 = Duration.ofSeconds(1); | |
System.out.println(d1.toMinutes()); | |
Duration d2 = Duration.ofSeconds(2); | |
System.out.println(d2.toMinutes()); |
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 appPath = System.Reflection.Assembly.GetExecutingAssembly().Location; | |
var cert = new X509Certificate2(appPath); | |
X509Certificate2UI.DisplayCertificate(cert); |
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>D3.js の練習</title> | |
</head> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script> | |
var dataset = [11, 25, 45, 30, 33]; |
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>D3.js の練習</title> | |
</head> | |
<body> | |
<p>Hello 1</p> | |
<p>Hello 2</p> | |
<p>Hello 3</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
require 'nokogiri' | |
require 'open-uri' | |
connected_shop_name = '' | |
hanbey = Nokogiri::HTML(open('http://www.hanbey.com/info/')) | |
hanbey.css('.table_shopname strong').each do |all_shop_name| | |
all_shop_name.children.each do |divided_shop_name| | |
connected_shop_name += divided_shop_name.content.strip | |
end | |
puts connected_shop_name unless connected_shop_name.empty? |
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
ary1 = [1, 2, 3] | |
ary2 = [1, 1, 3] | |
p 'uniq' | |
p ary1.uniq | |
p ary2.uniq | |
p 'uniq!' | |
p ary1.uniq! |
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
require 'open-uri' | |
require 'nokogiri' | |
page = Nokogiri::HTML(open('http://kzrb.org/meetup/')) | |
dates = page.css('header ul li').map(&:text).reverse | |
YEAR = 2014 | |
dates = dates.map do |date| | |
date =~ /(#{YEAR}-\d\d-\d\d)/ |
NewerOlder