Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View 0V's full-sized avatar
🛌
Always sleeping

G2 0V

🛌
Always sleeping
View GitHub Profile
@0V
0V / >ω<.cpp
Last active August 29, 2015 14:01
これじゃない感
#include<stdio.h>
#define v printf
#define ノ ;
void 。>ω<。
using OpenCvSharp;
namespace OpenCvTest
{
class Program
{
static void Main(string[] args)
{
//初期設定
var capture = Cv.CreateCameraCapture(0);
using System;
using System.Text;
using System.Diagnostics;
using System.IO;
using OpenCvSharp;
using OpenCvSharp.CPlusPlus;
namespace CaptureTest
{
class Program
using System;
using System.Text;
namespace ExperimentStap
{
class Program
{
static readonly string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYG";
static void Main(string[] args)
{
@0V
0V / Shitsumon.bat
Last active April 23, 2016 16:52
「質問攻め君.bat」 ガチな真っ黒ヒストリー PC 整理してたら昔作った懐かしい奴が出てきたので
@echo off
echo ******************************************************************
echo とつぜんだけど質問するよ。
echo  [yes]や[no] などのように、
echo その場に合った答えを、考えて入力した後、エンターキーを押してね。                               
echo いろいろ質問したりするけど、
echo なんとなくで答えていってね。                                    
echo ほかのところは全部、エンターキーとかを押せば進むようになってるよ。
using MySql.Data.MySqlClient;
using System;
using System.Data;
namespace ConnectMysqlSample
{
class Program
{
static void Main(string[] args)
{
@0V
0V / WallisFormula.cs
Last active August 29, 2015 14:06
Wallis' Formula by C#
namespace MathUtil
{
/// <summary>
/// Wallis の公式
/// </summary>
public class WallisFormula
{
/// <summary>
/// 計算を実行する
/// </summary>
@0V
0V / wallis_formula.m
Last active August 29, 2015 14:06
Wallis' Formula by Matlab
# count = 計算回数
# precision = 精度
function y = wallis_formula(count,precision)
output_precision(precision)
i = 1
a = 1
while(i<=count)
num = 4*(i^2)
a = a * num/(num-1)
i++
@0V
0V / ChitokuChin.cs
Last active August 29, 2015 14:06
ちとくちんち~~~~ん
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Util
{
public class ChitokuChin
{
@0V
0V / run_length_encode.cpp
Created September 30, 2014 14:43
再帰呼び出しの練習:RLE
#include<iostream>
using namespace std;
const int LENGTH = 200;
int char_count[LENGTH];
void set_str(char *dst, int n){
if (n == LENGTH){
return;
}