This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#define _USE_MATH_DEFINES | |
#include <iostream> | |
double LengthCos(double t1,t2,t3,f1,f2,f3) { | |
return sqrt(((t1-f1)*(t1-f1)+(t3-f3)*(t3-f3)))/sqrt(((t1-f1)*(t1-f1)+(t2-f2)*(t2-f2)+(t3-f3)*(t3-f3))); | |
} | |
double LengthDegree(double t1,t3,f1,f3) { | |
return sqrt((t1-f1)*(t1-f1))/sqrt(((t1-f1)*(t1-f1)+(t3-f3)*(t3-f3))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一歳半のちびっ子が認識しない件 | |
Kinect本はKinect-Hackにぴったりです | |
OpenNI | |
Generator | |
MetaData | |
NITE | |
Session | |
Detector | |
idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一歳半のちびっ子が認識しない件 | |
Kinect本はKinect-Hackにぴったりです | |
OpenNI | |
Generator | |
MetaData | |
NITE | |
Session | |
Detector | |
idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>mind-catch</title> | |
<script type="text/javascript" src="./jquery-1.7.min.js"></script> | |
<script type="text/javascript"> | |
var canvas; | |
var context; | |
var socket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main(){ | |
unsigned long long a[3]={0L,1L,1L},b,c=0; | |
printf("%d\n%d\n",a[1],a[2]); | |
for(b=0;b-98;b++){ | |
c=0; | |
a[b%3]=a[(b+1)%3]+a[(b+2)%3]; | |
if(!(a[b%3]%3))printf("Fizz"),c=1; | |
if(!(a[b%3]%5))printf("Buzz"),c=1; | |
if(!c)printf("%lld",a[b%3]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <limits.h> | |
#define NUM 100000 | |
#define N 2147483647L | |
int main(void){ | |
long long int i; | |
clock_t start,end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import random | |
def main(): | |
word_list = [u'マジで', u'ヤバい', u'ウケるー', ] | |
while True: | |
raw_input(">>>") | |
print random.choice(word_list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def fft(n, data): | |
theta = math.pi * 2 / n | |
def scramble(k, i): | |
while True: | |
i ^= k | |
if i >= k: | |
return i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
pinMode(2,INPUT); | |
pinMode(9,OUTPUT); | |
} | |
int last_sw; | |
void loop(){ | |
int sw = digitalRead(2); | |
int light=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=============================== | |
// arduino | |
//=============================== | |
void setup(){ | |
Serial.begin(9600); | |
pinMode(13,INPUT); | |
} | |
void loop(){ |
OlderNewer