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>memo.md</title> | |
<meta name="description" content="README.md"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.25.0/codemirror.css" crossorigin="anonymous"> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js" crossorigin="anonymous"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.js" crossorigin="anonymous"></script> |
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
# | |
# ほんの少しですが、手軽に状態遷移機械を作ることができます。 | |
# | |
require 'dxruby' | |
class GameBase | |
# 状態遷移を sceneで指定されたシンボルで示されるメソッドから開始する。 | |
# その際に、paramsで指定された引数が渡される。 |
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
// for For image to be given to FreeH264. | |
class yuv420_planar { | |
private: | |
static void yuv_to_bgr(unsigned char bgr[], const unsigned char y, const unsigned char u, const unsigned char v) { | |
auto c = static_cast<int>(y) - 16; | |
auto d = static_cast<int>(u) - 128; | |
auto e = static_cast<int>(v) - 128; | |
auto _r = (298 * c + 409 * e + 128) >> 8; | |
auto _g = (298 * c - 100 * d - 208 * e + 128) >> 8; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace TopologicalSort { | |
static class Program { | |
static void Main() { | |
// | |
// digraph G { | |
// "7" -> "11" |
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
/** | |
* | |
* wget like tools for .NET 3.5 Client Profile | |
* | |
* Build: | |
* 1. Perform either | |
* A) Open the "Command Prompt" from the Start menu . | |
* B) Press the Windows key + R key , and enter 'cmd.exe' to shown dialog box. | |
* 2. enter %windir%\Microsoft.NET\Framework\v3.5\csc.exe nwget.cs | |
* |
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
/** | |
* | |
* Example of Self-extracting archive for .NET 3.5 Client Profile | |
* | |
* Dependency: | |
* https://github.com/yallie/unzip/blob/master/Unzip.cs | |
* | |
* Build: | |
* 1. Perform either | |
* A) Open the "Command Prompt" from the Start menu . |