Skip to content

Instantly share code, notes, and snippets.

View tttzof351's full-sized avatar

Nikita Bukhal tttzof351

View GitHub Profile
@tttzof351
tttzof351 / CellularAutomata.scala
Created March 5, 2017 19:52
CellularAutomata
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.util.Random
object Constants {
val count = 100
val windowSize = 700
val elemntSize = windowSize / count
}
class Canvas extends JComponent {
#!/bin/bash
findPattern=$3
firstDir=$1
secondDir=$2
baseNamesFirstList=()
firstArray=()
for i in $(find $firstDir -name $findPattern); do