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
int length = 1000; | |
float[] x = new float[length]; | |
float[] y = new float[length]; | |
float[] speedX = new float[length]; | |
float[] speedY = new float[length]; | |
float[] speedRate = new float[length]; | |
void setup(){ | |
size(1000, 700); |
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
float FRICTION = 0.99; | |
float x, y; | |
float speedY, speedX; | |
int radius = 10; | |
void setup(){ | |
size(200, 200); | |
colorMode(HSB, 100); | |
background(99); |
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(){ | |
size(1000, 750); | |
colorMode(RGB, 100); | |
frameRate(10); | |
background(100); | |
noStroke(); | |
} | |
void draw(){ |
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
int counter; | |
void setup(){ | |
size(900, 900); | |
//frameRate(10); | |
counter = 0; | |
} | |
void draw(){ | |
background(255); |
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
try | |
{ | |
throw new Exception(); | |
} | |
catch (Exception exp) | |
{ | |
StackTrace st = new StackTrace(exp, true); | |
StackFrame sf = st.GetFrame(0); | |
Console.WriteLine(sf.GetFileName()); | |
Console.WriteLine(sf.GetFileLineNumber()); |
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
filetype indent plugin on | |
syntax on | |
set wildmenu | |
set autoindent | |
set smartindent | |
set number | |
set tabstop=4 | |
set tw=0 | |
set shiftwidth=4 | |
set whichwrap=b,s,h,l,<,>,[,] |
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
Unite options | |
-auto-highright | |
-auto-preview | |
-auto-quit | |
-auto-resize | |
-buffer-name= | |
-comlete | |
-create | |
-cursor-line-highlights |
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
<?php | |
error_reporting(false); | |
$input = "0"; | |
if( $input == "0e94323" ){ | |
print("$input == 0e94323\n"); | |
} |
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
# -*- encoding:utf-8 -*- | |
import socket | |
import sys | |
version = 1.0 | |
email = "kaede06152000@gmail.com" | |
host = 'localhost' | |
port = 1234 | |
sendMessage = 'send by TcpSender' |
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
static IplImage FaceDe(IplImage srcImg) | |
{ | |
const double Scale = 1.04; | |
const double ScaleFactor = 1.139; | |
const int MinNeighbors = 2; | |
using (IplImage smallImg = new IplImage(new CvSize(Cv.Round(srcImg.Width / Scale), Cv.Round(srcImg.Height / Scale)), BitDepth.U8, 1)) | |
{ | |
// 顔検出用の画像の生成 |