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
use rand::{thread_rng, Rng}; | |
use bevy::prelude::*; | |
use bevy::time::FixedTimestep; | |
const WIN_WIDTH: u32 = 640; | |
const WIN_HEIGHT: u32 = 640; | |
fn main() { | |
App::new() | |
.insert_resource(ClearColor(Color::rgb(0.04, 0.04, 0.04))) |
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
classdef Turtle < handle | |
% MATLABで簡易のTurtle Graphicsを行うためのクラス | |
% | |
% Turtle Properties: | |
% p - Turtleの位置を表す行ベクトル [x, y] | |
% penOnPaper - trueならTurtleの軌跡を描画する | |
% | |
% Turtle Methods: | |
% moveTo - Turtleを位置 pDst に移動させる | |
% penUp - Turtleが移動した軌跡を描画しない |
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 q5 | |
class App(q5.BaseApp): | |
def __init__(self): | |
self.x = 0.0 | |
self.y = 0.0 | |
def update(self): |
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 | |
import q5 | |
class App(q5.BaseApp): | |
def __init__(self): | |
self.x = 0.0 | |
self.y = 0.0 | |
def update(self): |
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
final int N = 2048; | |
float[][] radii = new float[][] { | |
{0.3, 0.3}, {0.7, 0.3}, {0.7, 0.7}, {0.3, 0.7} | |
}; | |
// offset用 | |
float[][] signs = new float[][] { | |
{1.0, 1.0}, {-1.0, 1.0}, {-1.0, -1.0}, {1.0, -1.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
// https://stackoverflow.com/questions/3522454/how-to-implement-a-tree-data-structure-in-java | |
// https://github.com/gt4dev/yet-another-tree-structure | |
class TreeNode<T extends AbstractShape> { | |
final int MAX_N = 8; | |
int N = 1; | |
T data; | |
TreeNode<T> parent; | |
ArrayList<TreeNode<T>> children; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 -*- | |
""" | |
Created on 09/28/19 00:28:12 | |
@author: Satoshi Murashige | |
""" | |
import time | |
import numpy as np | |
import cv2 |
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
Host example | |
HostName example.com | |
User example | |
Port 22$ | |
IdentityFile ~/id_rsa | |
ServerAliveInterval 60$ | |
LocalForward 9000 localhost:8888 | |
LocalForward 9001 localhost:6006 |
NewerOlder