Skip to content

Instantly share code, notes, and snippets.

Avatar

Mitsuhiro Hibino nasustim

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nasustim on github.
  • I am nasustim (https://keybase.io/nasustim) on keybase.
  • I have a public key ASCl83ZQ6svpxZApYnTv4l4sweq8dO4D_qReRaPy6zlbDwo

To claim this, I am signing this object:

@nasustim
nasustim / video.html
Created Sep 2, 2019
モバイル端末で映像が再生されている様子をdev toolで手軽に表示するためのHTMLファイル
View video.html
<!DOCTYPE html>
<html lang="ja">
<head>
<title>video player</title>
<meta charset="utf-8">
<meta name="viewport" content="width=360,initial-scale=1">
<style>
html, body, video{
width: 100%;
height: 100%;
@nasustim
nasustim / loadingAnimation.pde
Last active Feb 4, 2019
Loading Animation, Generated in Processing. Depend GifMaker
View loadingAnimation.pde
import gifAnimation.*;
GifMaker gifExport;
void gifSetup(){
gifExport = new GifMaker(this, "/Users/mitsu/Desktop/loading_animation.gif");
gifExport.setRepeat(0);
gifExport.setQuality(10);
gifExport.setDelay(20);
}
View p20181126.scala
import processing.core.PApplet
trait Points{
val w: Int
val h: Int
}
trait Slopes{
val deg: Double
}
View unicode3.js
// クラス名は仕方ない
class Bar{
// コンストラクタは仕方ない
constructor(){
this.変数 = 0;
this.defineMethods();
}
defineMethods(){
// メンバ変数に関数を代入
this.メソッド = () =>{
@nasustim
nasustim / servo.ino
Created Feb 18, 2018
Arduino_UnlimitedRotateServo
View servo.ino
#include<Servo.h>
Servo s;
void setup(){
s.attach(13);
}
void loop(){
turn(180);
@nasustim
nasustim / rotateDeg.ino
Last active Feb 18, 2018
arduino_stepping_motor
View rotateDeg.ino
#define DIR_PIN 2
#define STEP_PIN 3
void rotateDeg(float deg, float speed, int dec){
//deg -= dec;
//deg = -dec;
//Serial.println(deg);
deg *= 0.6666666;
int dir = (deg > 0) ? HIGH : LOW;