Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>KidsLab workshop</title>
<script src="main_move.js"></script>
<style>body{background:white;margin:0;padding:0;}</style>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>KidsLab LifeGame</title>
<script src="main_shape.js"></script>
<style>body{background:white;margin:0;padding:0;}</style>
</head>
<body>
@rockos
rockos / blockly_fibo.xml
Last active September 24, 2016 01:22
blockly でフィボナッチ数列
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="text_print" x="-637" y="-387">
<value name="TEXT">
<shadow type="text">
<field name="TEXT">abc</field>
</shadow>
<block type="procedures_callreturn">
<mutation name="fib">
<arg name="n"></arg>
</mutation>
<!DOCTYPE html>
<!--
このプロジェクトではオリジナルの生物を創ります。
http://thimble.mozillafactory.org/ja/projects/zoo-small/edit
-->
<!--
さあ、始めよう!
@rockos
rockos / meter.html
Created June 25, 2016 02:00
kidslab0625
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Maykid workshop</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://rockos.co.jp/js/kidslab_func.js"></script>
</head>
<body>
var socket;
var temperatureData, humidityData;
var temperatureOptions, humidityOptions;
var temperatureChart, humidityChart;
// Google Gauge
google.load("visualization", "1", {packages:["gauge"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
// Data for temperature chart
@rockos
rockos / jc1_lesson1_4.c
Created December 13, 2015 02:27
IT KIDS LAB Junior Class Lessoon 1 problem4
#include <stdio.h>
int main()
{
int W,H,X,Y,R;
int flag=0;
scanf("%d %d %d %d %d",&W,&H,&X,&Y,&R);
if (H < Y+R) {
flag=1;
@rockos
rockos / kidslab0801_carbot.xml
Created July 21, 2015 23:22
blocklyduino source xml file for 2015 summer worksop.
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="initializes_setup" id="322" collapsed="true" x="63" y="-737"><statement name="CONTENT"><block type="ultrasonic_setting" id="323"><field name="TRIG">3</field><field name="ECHO">4</field><field name="RESET">0</field><next><block type="variables_set" id="324" inline="true"><field name="TYPE">Number</field><field name="VAR">SPEED_H</field><value name="VALUE"><block type="math_number" id="325"><field name="NUM">128</field></block></value><next><block type="variables_set" id="326" inline="true"><field name="TYPE">Number</field><field name="VAR">SPEED_M</field><value name="VALUE"><block type="math_number" id="327"><field name="NUM">64</field></block></value><next><block type="variables_set" id="328" inline="true"><field name="TYPE">Number</field><field name="VAR">SPEED_L</field><value name="VALUE"><block type="math_number" id="329"><field name="NUM">10</field></block></value><next><block type="variables_set" id="330" inline="true"><field name="TYPE">Number</fiel
@rockos
rockos / kidslab0801_carbot.cpp
Last active August 29, 2015 14:24
CarBot source code for 2015 summer worksop.
int distance;
String MEIREI;
int SPEED_H;
int SPEED;
int L_EN;
@rockos
rockos / kidslabo0620_deka_full.xml
Created June 19, 2015 09:47
kidslabo0620_deka_full.xml
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="ultrasonic_setting" id="45" x="-42" y="-265"><field name="TRIG">3</field><field name="ECHO">4</field><field name="RESET">0</field></block><block type="procedures_defnoreturn" id="14" x="713" y="-237"><mutation></mutation><field name="NAME">FORWARD</field><statement name="STACK"><block type="inout_digital_write" id="15"><field name="PIN">6</field><field name="STAT">LOW</field><next><block type="inout_digital_write" id="16"><field name="PIN">7</field><field name="STAT">HIGH</field><next><block type="inout_digital_write" id="2"><field name="PIN">11</field><field name="STAT">LOW</field><next><block type="inout_digital_write" id="3"><field name="PIN">12</field><field name="STAT">HIGH</field></block></next></block></next></block></next></block></statement></block><block type="variables_set" id="4" inline="true" x="-37" y="-162"><field name="TYPE">Number</field><field name="VAR">speed</field><value name="VALUE"><block type="math_number" id="5"><field name="NUM">