Skip to content

Instantly share code, notes, and snippets.

View maxx1128's full-sized avatar
🐢
Slow and steady makes the tests pass.

Max Antonucci maxx1128

🐢
Slow and steady makes the tests pass.
View GitHub Profile
# frozen_string_literal: true
require 'open-uri'
require 'nokogiri'
require 'json'
class FreemanQuotes
URL = 'https://en.wikiquote.org/wiki/Freeman%27s_Mind'
def initialize
@maxx1128
maxx1128 / checksudoku.js
Last active January 20, 2024 07:04
Check if you solved a Sudoku
const checkSudoku = board => {
const isSudokuArrayValid = (array) => {
const row = array.slice(0).sort().join(''),
passingRow = [1,2,3,4,5,6,7,8,9].join('');
return (row === passingRow);
};
const testRows = (board) => board.every(row => isSudokuArrayValid(row));
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});