Skip to content

Instantly share code, notes, and snippets.

@ainehanta
ainehanta / NativeUart.cs
Created June 27, 2019 09:39
ESP32用UARTドライバ for Unity, フォーク元:https://github.com/Satoshi-Hirazawa/unity-android-uart
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class NativeUart : MonoBehaviour{
static NativeUart instance;
public delegate void UartDataReceivedEventHandler(string message);
@ainehanta
ainehanta / index.vue
Created September 20, 2018 16:26
Vuetifyでよくあるダッシュボードっぽいレイアウト
<template>
<v-container fluid grid-list-lg>
<v-layout row wrap>
<v-flex d-flex xs6 md4>
<v-card color="purple" dark>
<v-card-title primary class="title">Lorem</v-card-title>
<v-card-text>hogehuga</v-card-text>
</v-card>
</v-flex>
<v-flex d-flex xs6 md4>
// IR解析スケッチ
#define IR_IN 2 // IR Receiver
#define NEC 1
#define AEHA 2
#define SONY 3
#define BUF_SIZE (512) // ATmega168だと 128くらいにしないと不具合
void setup() {
@ainehanta
ainehanta / Alexa Yamemasu Skill
Last active November 20, 2017 06:53
やめまーす!
/* eslint-disable func-names */
/* eslint quote-props: ["error", "consistent"]*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports multiple lauguages. (en-US, en-GB, de-DE).
* The Intent Schema, Custom Slots and Sample Utterances for this skill, as well
* as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact
**/
@ainehanta
ainehanta / Alexa FIAP Skill
Last active November 20, 2017 06:45
Alexa FIAP Skill
'use strict';
const Alexa = require('alexa-sdk');
const http = require('http');
const APP_ID = "";
const handlers = {
'LaunchRequest': function () {
*.rbc
capybara-*.html
.rspec
/log
/tmp
!/log/.keep
!/tmp/.keep
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/*
* analog upload
*
* Author: Makoto Uju (ainehanta), Hiromasa Ihara (taisyo)
* Created: 2016-07-04
*/
#include <Ethernet.h>
#include <EthernetUdp.h>
@ainehanta
ainehanta / docker-compose.yml
Created June 20, 2017 00:23
Node Docker and Webpack Dev server
version: '2'
services:
node:
image: node:8
volumes:
- .:/var/host
working_dir: /var/host
ports:
- "8080:8080"
{
"messages" : [
"5553424312345678000000000000061b004600000000000000000000000000",
],
"devices" : {
"0408:f000": {
"*": {
"t_vendor": 1032,
"t_product": [ 53257 ],
"msg": [ 0 ]
@ainehanta
ainehanta / fiap2json.php
Last active May 8, 2017 05:16
fiap2json gateway
<?php
/*
* FIAP2JSON_GW
*
* Copyright 2017, Makoto Uju
* Licensed under the MIT license.
* Forked from miettal's FIAP2JSONP_GW(https://github.com/miettal/FIAP2JSONP_GW)
*/
function uuid(){