This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = setInterval(function() { | |
var val = analogRead(B1); | |
console.log(val); //圧力センサーの値 | |
if(val < 0.5) { //値が0.5以下になるとLEDが点灯する | |
digitalWrite(A8, 1); | |
} else { | |
digitalWrite(A8, 0); | |
} | |
}, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import os | |
import gym | |
import random | |
import numpy as np | |
import tensorflow as tf | |
from collections import deque | |
from skimage.color import rgb2gray | |
from skimage.transform import resize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Chirimenに装着するWifiドングルは Planex GW-USNano2 動作確認済み | |
* https://www.planex.co.jp/product/wireless/gw-usnano2/ | |
* | |
* WifiドングルをつけてChirimenを起動、SettingsでWifi設定を完了後、以下のソースを実行する | |
* | |
*/ | |
window.addEventListener("load", function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1"> | |
<title>Motion Sensor</title> | |
<!-- https://github.com/club-wot/WebGPIO --> | |
<script src="./bower_components/webgpio/dist/webgpio.js"></script> | |
<!-- https://github.com/mozilla/task.js/blob/master/lib/task.js --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> body,input,button { font-size:1.8em; } </style> | |
</head> | |
<body> | |
<button id="start">Start</button> | |
<div id="monitor"></div> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2013-10-21 using generator-webapp 0.4.3 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>http://www.example.com</AllowedOrigin> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedHeader>Content-Type</AllowedHeader> | |
<AllowedHeader>x-amz-acl</AllowedHeader> | |
<AllowedHeader>origin</AllowedHeader> | |
</CORSRule> | |
<CORSRule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カーソル選択時に選択文字列をピックアップする</title> | |
</head> | |
<body> | |
<h1>The MIT License</h1> | |
<p>以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。</p> | |
<p>上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# うまくいった | |
<article> | |
<figure> | |
<img src="https://si0.twimg.com/profile_images/53494994/btf_logo.jpg" alt="example1 image"> | |
</figure> | |
<section> | |
<h1>Example1. Hello</h1> | |
<p class="text-x-small"> | |
<img src="https://mirror-api-playground.appspot.com/links/rated_r.png" alt=""> | |
x-small text |