Skip to content

Instantly share code, notes, and snippets.

View hydrangeas's full-sized avatar

Akira Otaka hydrangeas

  • Freelance
  • Hamamatsu, Japan
View GitHub Profile
@hydrangeas
hydrangeas / index.html
Created May 25, 2024 08:41
d3.jsでグラフを2つ+縦線が動く+ツールチップありのサンプル
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
</head>
<body>
<h1>こんにちは、世界!</h1>
[
{
"Date": "2020/05/23",
"DayOfWeek": "Sat",
"Data": 4
},
{
"Date": "2020/05/22",
"DayOfWeek": "Fri",
"Data": 0
[
{
"Date": "2020/05/23",
"DayOfWeek": "Sat",
"Data": 0
},
{
"Date": "2020/05/22",
"DayOfWeek": "Fri",
"Data": 8
using System;
using System.Globalization;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
[
{
"Date": "2020/05/23",
"DayOfWeek": "Sat",
"Data": 74
},
{
"Date": "2020/05/22",
"DayOfWeek": "Fri",
"Data": 96
import sys
import iothub_service_client
from iothub_service_client import IoTHubRegistryManager, IoTHubRegistryManagerAuthMethod
from iothub_service_client import IoTHubDeviceStatus, IoTHubError
### TODO:ここは変える!
CONNECTION_STRING = "<接続文字列>"
DEVICE_ID = "MyFirstPythonDevice"
def print_device_info(title, iothub_device):
@hydrangeas
hydrangeas / base64.sh
Created July 17, 2012 23:34
encode base64
for image in *jpg;
do;
base64 < ${image} > ${image}.base64;
done
@hydrangeas
hydrangeas / LSM303.c
Created April 10, 2012 23:39
Arduino
/* LSM303DLH Example Code
by: Jim Lindblom
SparkFun Electronics
date: 9/6/11
license: Creative commons share-alike v3.0
Summary:
Show how to calculate level and tilt-compensated heading using
the snazzy LSM303DLH 3-axis magnetometer/3-axis accelerometer.
@hydrangeas
hydrangeas / perspective1.css
Created April 2, 2012 10:43
2012-04-02_branch01
#container{
margin: 50px 0 0 200px;
width : 200px;
height: 200px;
display: block;
border: #ccc 1px solid;
position: relative;
-webkit-perspective-origin-x: 100px;
@hydrangeas
hydrangeas / 3d.css
Created April 2, 2012 07:25
2012-04-02
#container{
-webkit-perspective: 200px;
}
#stage{
-webkit-transform-style: preserve-3d;
}
#shape{
-webkit-transform-style: preserve-3d;
}
#panel{