Skip to content

Instantly share code, notes, and snippets.

View ayato-p's full-sized avatar
๐Ÿ’ช

ayato-p ayato-p

๐Ÿ’ช
  • UZABASE, inc.
  • Tokyo, Japan
  • 04:32 (UTC +09:00)
View GitHub Profile
package test;
import java.util.Random;
public class RandomCreate {
private int[] bitArray;
/**
* overLoad
def prime(n)
k=2
c=0
if n==1
print("false","\n")
else
while k<n-1
b=n%k
if b==0
#! /usr/bin/ruby
def collatz(n)
print n.to_s+"\n"
if n%2 == 0
collatz(n/2)
elsif n != 1
collatz(n*3+1)
end
end
import java.util.Iterator;
public interface Aggregate {
public abstract Iterator<Book> iterator();
}
/*
โ†“ๅ‚่€ƒ
http://saeki-ce.xsrv.jp/C_src/mandelbrot01.html
โ†“ใ‚ใจใง่ชญใ‚€
http://azisava.sakura.ne.jp/mandelbrot/algorithm.html
*/
int windowX = 800, windowY = 800;
double cr1 = -2.3, cr2 = 0.7;
double ci1 = -1.5, ci2 = 1.5;
import ketai.sensors.*;
KetaiSensor sensor;
PImage texmap;
int sDetail = 35; // Sphere detail setting
float rotationX, rotationY;
float velocityX, velocityY;
float globeRadius = 100;
for(int i = 0; i<list.size(); i++){
}
for(int i = 0, n = list.size(); i<n; i++){
}
def greatest_common_divisor(n, m)
return n if m.zero?
greatest_common_divisor(m, n%m)
end
def dw(y,m,d)
j = y/100
k = y%100
h = (d + (((m+1)*26)/10).to_i + k + (k/4).to_i + (j/4).to_i - (2*19))%7
end

ใ‚ใ‘ใพใ—ใฆใŠใ‚ใงใจใ†ใ”ใ–ใ„ใพใ™ใ€‚

ๆ—งๅนดไธญใฏๅคงๅค‰ใŠไธ–่ฉฑใซใชใ‚Šใพใ—ใŸใ€‚ ไปŠๅนดใ‚‚ใ‚ˆใ‚ใ—ใใŠ้ก˜ใ„ใ„ใŸใ—ใพใ™ใ€‚

ใจใ„ใ†ใ“ใจใงใ€ๆ—ฉ้€Ÿใงใ™ใŒๅนด่ณ€็ŠถใฎARใƒžใƒผใ‚ซใƒผใฎ่ชฌๆ˜Žใจใ‹ใ•ใ›ใฆใ‚‚ใ‚‰ใŠใ†ใ‹ใชใจใ€‚

ๅนด่ณ€็ŠถใฎARใƒžใƒผใ‚ซใƒผใซใคใ„ใฆ