Skip to content

Instantly share code, notes, and snippets.

View JotaroS's full-sized avatar
🎓

Jotaro JotaroS

🎓
View GitHub Profile
@JotaroS
JotaroS / Makefile
Created September 3, 2016 11:40
Makefile for competitive programming
CC=g++
CFLAGS=-Wall
.SUFFIXES = .cpp
objs:=$(wildcard *.cpp)
targets:=$(objs:.cpp= )
.PHONY:all
all: $(targets)
.cpp:
$(CC) $(CFLAGS) -std=c++11 -o $@ $<
@JotaroS
JotaroS / ms_emotion.py
Last active July 10, 2018 21:22
Microsoft emotion recognition api python code
# Calling Emotion APIs is
# restricted to 20 transactions per minute
# and 30,000 transactions per month.
# 20 transactions per 60 seconds
# 1 transaction per 3 seconds
# python ms_emotion.py tani.jpg
import httplib
import urllib
@JotaroS
JotaroS / test.js
Created March 18, 2016 13:55
p5.js script
var sphere_r = 200;
var phi=0,theta=0;
function setup() {
var canvas = createCanvas(windowWidth, windowHeight,WEBGL);
canvas.parent("p5Canvas");
resizeCanvas(windowWidth, windowHeight);
basicMaterial(0,0,0);
setupSphereShell();
}
@JotaroS
JotaroS / file0.txt
Last active November 13, 2017 09:56
Intel Edisonでスマートウォッチもどきを作ってみた話 ref: https://qiita.com/JotaroS/items/58a9a0b4e53709ce19b8
screen /dev/tty.usbserial 115200
@JotaroS
JotaroS / file0.txt
Last active February 9, 2016 06:56
Swiftによるアプリ開発〜Storyboardを用いた最もシンプルな画面遷移の超テンプレ ref: http://qiita.com/JotaroS/items/20ee03edfebe4e9bbf34
|---buttonA--2nd view
1st view----
|---buttonB--3rd view
@JotaroS
JotaroS / file0.txt
Last active November 23, 2016 06:57
Arduinoでいろいろ始めたい人が知っておいた方がいい、いろいろなこと ref: http://qiita.com/JotaroS/items/65d19e0e54a88c9d2be9
R = \frac{(V_{cc}-V_f)}{I_f}
import cv2
import numpy as numpy
import sys
h = 512
w = 512
def nothing(x):
pass
cv2.namedWindow('lena')