Skip to content

Instantly share code, notes, and snippets.

View hydrangeas's full-sized avatar

Akira Otaka hydrangeas

  • Freelance
  • Hamamatsu, Japan
View GitHub Profile
[
{
"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{
@hydrangeas
hydrangeas / install-gitlab.sh
Created April 1, 2012 15:23
installing gitlab
sudo su - gitlab
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bashrc
rvm install 1.9.2
logout
sudo su - gitlab
rvm use 1.9.2 --default
gem install sqlite3-ruby
gem install charlock_holmes
gem install bundler