Skip to content

Instantly share code, notes, and snippets.

@katogiso
katogiso / qiita_rest.rb
Last active August 16, 2016 13:38
Sample script of qiita web api access
#!/usr/local/bin/ruby -W0
require 'net/http'
require 'uri'
require 'json'
require 'pp'
class QiitaGet
attr_accessor :base_url, :debug
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
</body>
<script>
var ctx = document.getElementById("myChart").getContext("2d");
var myChart = new Chart(ctx, {
@katogiso
katogiso / chartjs_line_multi_index.html
Created August 27, 2016 08:36
ChartJs Line Multi
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
<!-- https://github.com/google/palette.js -->
<script src="../../palette.js/palette.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
</body>
@katogiso
katogiso / chartjs_line_base_structure.js
Created August 27, 2016 08:37
line option structure
{
type: 'line',
data: {
labels: [ <string> ],
datasets: [
{
label: <string>,
data: [ <num> ],
borderColor: <string> ,
backgroundColor: <string>

+++ date = "2016-08-28T14:28:49+09:00" draft = false title = "hugo new something_contens.md"

+++

hugo new something_contens.md

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> {{ .Title }} &ndash; {{ .Site.Title }}</title>
</head>
<body>
<h1>This page is generated with layouts/chartjs/single.html</h1>
{{ .Content }}
</body>
@katogiso
katogiso / chartjs_line_pointstyle_index.html
Created August 31, 2016 11:51
chartjs sample pointstyle
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
<!-- https://github.com/google/palette.js -->
<script src="../../palette.js/palette.js"></script>
</head>
<body>
<canvas id="myChart"></canvas>
</body>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
<!-- https://github.com/google/palette.js -->
<script src="../../palette.js/palette.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
</body>
<script>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
<!-- https://github.com/google/palette.js -->
<script src="../../palette.js/palette.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
</body>
<script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>This is sample page</title>
</head>
<body>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.2/d3.js"></script>
<script>