Skip to content

Instantly share code, notes, and snippets.

View DanTup's full-sized avatar

Danny Tuppeny DanTup

  • Coded Consultants Ltd
  • England, UK
  • 00:42 (UTC +01:00)
  • X @DanTup
View GitHub Profile
@DanTup
DanTup / Dart.plist
Created January 27, 2022 14:31
Basic Language Module for BBEdit to recognise Dart
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key> <string>Dart</string>
<key>BBLMLanguageCode</key> <string>Dart</string>
@DanTup
DanTup / paths.dart
Last active April 6, 2022 22:25
Sudoku Killer Cage path calculations
import 'package:built_collection/built_collection.dart';
import 'package:flutter/painting.dart';
import 'package:sudoku/src/model/model.dart';
import 'package:sudoku/src/model/model_extensions.dart';
typedef CellSelector = CellCoordinate Function(CellCoordinate);
class InsetInfo {
/// The relative cell to check for selection to know if we need a line along
/// this edge.
@DanTup
DanTup / main.dart
Created October 24, 2022 18:37
quintessential-dryad-3795
void main() {
var num = 5;
var factorial = 1;
for( var i = num ; i >= 1; i-- ) {
factorial = factorial * i ;
print(factorial);
}
print(factorial);
}