# たのしい Ruby 達成度確認テスト 答案用紙テンプレート
## 問1の答え Interactive
## 問2の答え 特殊文字
## 問3の答え 出来る
<script type="text/javascript"> | |
$(document).ready(function() { | |
chart = new Highcharts.Chart({ | |
chart: { | |
renderTo: 'container1', | |
defaultSeriesType: 'scatter', | |
zoomType: 'xy' | |
}, | |
title: { | |
text: '施工時' |
# たのしい Ruby 達成度確認テスト 答案用紙テンプレート
## 問1の答え Interactive
## 問2の答え 特殊文字
## 問3の答え 出来る
技術研修で読み進めているWebを支える技術について、各章のまとめを順次上げていく。 前Webを支える技術6章 次
HTTPメソッドには8つの種類がある。
require 'RMagick' # require してライブラリを読み込み | |
require 'pp' | |
path = 'test.png' | |
image = Magick::Image.read("./images/#{File.basename(path)}").first | |
img = image.resize_to_fit(200,200) | |
# 画像内で使用されている色の一覧を集計 |
require 'RMagick' | |
path = 'test.jpeg' | |
image = Magick::ImageList.new("./images/#{File.basename(path)}") | |
# フォントの指定がないと日本語辛い | |
font = "./fonts/GenJyuuGothic-Normal.ttf" | |
draw = Magick::Draw.new |
@RestResource(urlMapping='/LeadManager/*') | |
global class LeadManager { | |
@HttpPost | |
global static List<String> convert() { | |
RestRequest request = RestContext.request; | |
String leadId = request.params.get('leadId'); | |
Database.LeadConvert lc = new database.LeadConvert(); | |
lc.setLeadId(leadId); |
from PIL import Image | |
from PIL import ImageFilter | |
''' | |
実行に必要なパッケージをインストールする | |
$ pip install Pillow | |
''' | |
def put_on_wihte_space(image): | |
''' |
import requests | |
from fastimage.detect import bytes_to_size | |
import os | |
import subprocess | |
import time | |
def test(url): | |
stream = requests.get(url, stream=True) | |
body = bytes() |