Skip to content

Instantly share code, notes, and snippets.

View panchiga's full-sized avatar

panchiga panchiga

View GitHub Profile
p "Hello world"
def func(n)
return n+1
end
def Bpart(head,tail)
if ((head == 0)&&(tail > 0))
func(tail)
elsif ((head > 0)&&(tail==0))
Bpart(head-1,1)
else
#numeron
#if in "please input card" phase you typed '100', show the hint of 1 bite
def init
$flag = false #use in eat
map_num = Array.new(10,false)
loop do
print "please decide the size 1 ~ 9 :"
import cv2
import serial
def main():
#カメラの準備
cap = cv2.VideoCapture(0)
#シリアル通信の準備
ser = serial.Serial()
#シリアルポートは/dev/tty.usbmodem**となってるはず
// Arduino用プログラム
const int PUSH = 13;
void setup()
{
Serial.begin(9600);
pinMode(PUSH, OUTPUT);
digitalWrite(PUSH, LOW);
}
レベル; 曲名 --難易度--; 偏差値
16; VANESSA --Hard--;72.64275659223495
15; NEPHILIM DELTA --Hard--;73.82174304854964
10; Fascination MAXX --Hard--;74.3672572114113
17; London EVOLVED ver.A --Challenge--;74.53711141833358
10; Fascination -eternal love mix- --Hard--;74.62031269479951
16; tokyoEVOLVED (TYPE2) --Hard--;74.71908040990081
10; PARANOIA survivor MAX --Hard--;74.91655184048699
16; tokyoEVOLVED (TYPE1) --Hard--;75.1085926591377
ーーー→
ーーーー
ーー↑ー
ーーーー
require "selenium-webdriver"
print "input site url: "
plain_url = gets.to_s.chop
print "input PERFECT title: "
title = gets.to_s.chop
url_title = title.gsub(" ","+")
url = plain_url+"/search/?search_id="+url_title
const int motor1 = 5; // output for motor1 on 5pin(pwm)
const int motor2 = 6; // output for motor2 on 6pin(pwm)
const int button = 2;
int buttonState = 0;
void setup() {
pinMode(motor1, OUTPUT); // declare the motor1 as an OUTPUT
pinMode(motor2, OUTPUT); // declare the motor1 as an OUTPUT
pinMode(button, INPUT);
arr = [1,2,3,4]
#配列の要素が2か3にマッチしたら配列中のそれを消去
arr.each do |item|
if ((item == 2) || (item == 3))
arr.delete(item)
end
end
#2と3を消去後の配列の出力