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:
type Args = { | |
type: 'WPA' | 'WEP' | 'none' | |
ssid: string | |
password: string | |
isHidden?: boolean | |
} | |
function makeUrlForWifiConnection(args: Args): string { | |
return `WIFI:T:${args.type};S:${_sanitize(args.ssid)};P:${_sanitize(args.password)};${args.isHidden ? 'H:true;B:true;' : ''};` | |
} |
package rotxiii | |
func Decode(src string) string { | |
SHIFT_LENGTH := 13 | |
ALPHABET_LENGTH := 26 | |
SKIP_SEQUENCES := []byte{' ', '.'} | |
b := []byte(src) | |
r := make([]byte, len(src)) | |
for i, _ := range r { |
I hereby claim:
To claim this, I am signing this object:
<!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%; |
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); | |
} |
import processing.core.PApplet | |
trait Points{ | |
val w: Int | |
val h: Int | |
} | |
trait Slopes{ | |
val deg: Double | |
} |
// クラス名は仕方ない | |
class Bar{ | |
// コンストラクタは仕方ない | |
constructor(){ | |
this.変数 = 0; | |
this.defineMethods(); | |
} | |
defineMethods(){ | |
// メンバ変数に関数を代入 | |
this.メソッド = () =>{ |
#include<Servo.h> | |
Servo s; | |
void setup(){ | |
s.attach(13); | |
} | |
void loop(){ | |
turn(180); |
#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; |