This file contains hidden or 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
| #.. | |
| .## | |
| ##. |
This file contains hidden or 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
| package com.lyndonarmitage.daily.langton; | |
| import javax.imageio.ImageIO; | |
| import javax.swing.*; | |
| import javax.swing.filechooser.FileFilter; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.ArrayList; |
This file contains hidden or 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 java.io.File | |
| import scala.collection.mutable | |
| def sortWord(word: String) = new String(word.toCharArray.sorted) | |
| val wordList = scala.io.Source.fromFile( | |
| new File("wordsEn.txt")) | |
| .getLines() | |
| .filter(_.length > 2) |
This file contains hidden or 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 scala.collection.mutable | |
| // The word wheel data | |
| val required = List[Char]('a') | |
| val otherChars = List[Char]('t', 'n', 'd', 'o', 'e', 'c', 'i', 'u') | |
| // Load a word list and remove anything smaller than 2 letters | |
| val wordList = scala.io.Source.fromInputStream(getClass.getResourceAsStream("/wordsEn.txt")) | |
| .getLines() | |
| .filter(_.length > 2) |
This file contains hidden or 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
| " Vim syntax file | |
| " Language: GreyScript | |
| " Maintainer: Lyndon Armitage | |
| " Latest Revision: 03 September 2020 | |
| " To get working place in .vim/syntax | |
| " Then you will want to make sure vim uses this file for .src files | |
| " You could add the following to .vimrc | |
| " au BufRead,BufNewFile *.src set filetype=greyscript |
OlderNewer