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 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:provider/provider.dart'; | |
| import 'mcp_service.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| runApp(const McpApp()); |
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 'dart:ffi'; | |
| import 'dart:io'; | |
| import 'dart:typed_data'; | |
| import 'package:sqlite3/sqlite3.dart'; | |
| import 'package:sqlite3/src/ffi/implementation.dart'; | |
| void main() { | |
| final lib = DynamicLibrary.open('cr-sqlite/core/dist/sqlite3'); | |
| final sqlite3 = FfiSqlite3(lib); |
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 'dart:math'; | |
| import 'dart:typed_data'; | |
| enum ChangeOp { insert, delete, modify, equal } | |
| class DiffNode { | |
| final ChangeOp op; | |
| final String key; | |
| final Object? oldValue; | |
| final Object? newValue; |
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 'dart:convert'; | |
| // ============================================================================= | |
| // --- CORE ALGORITHM (The Diff Engine) --- | |
| // ============================================================================= | |
| /// Sentinel value for deleted keys | |
| class Deleted { | |
| const Deleted(); | |
| Map<String, dynamic> toJson() => {'_op': 'd'}; |
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 'dart:typed_data'; | |
| import 'package:collection/collection.dart'; | |
| enum DiffType { insert, delete, equal } | |
| class DiffOperation<T> { | |
| final DiffType type; | |
| final T data; | |
| final int | |
| index; // Index in newList (for insert) or oldList (for delete/equal) |
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
| #include <stdio.h> | |
| #include <stdlib.h> // For malloc, free | |
| #include <time.h> // For clock_gettime | |
| #include <stdint.h> // For intptr_t | |
| #include "signals.h" // Your signals library | |
| // How many computed signals to chain together | |
| #define CHAIN_DEPTH 100 | |
| // How many times to update the head signal | |
| #define NUM_UPDATES 100000 |
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
| //Updated for Swift 4 | |
| //One Button | |
| class ViewController: UIViewController { | |
| @IBAction func showAlertButtonTapped(_ sender: UIButton) { | |
| // create the alert | |
| let alert = UIAlertController(title: "My Title", message: "This is my message.", preferredStyle: UIAlertControllerStyle.alert) |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <rss xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"> | |
| <channel> | |
| <title>Creative Engineering</title> | |
| <googleplay:author>Rody Davis, Norbert Kozsir</googleplay:author> | |
| <rawvoice:rating>TV-G</rawvoice:rating> | |
| <rawvoice:location>San Francisco, California</rawvoice:location> | |
| <rawvoice:frequency>Weekly</rawvoice:frequency> | |
| <author>Rody Davis, Norbert Kozsir</author> | |
| <itunes:author>Rody Davis, Norbert Kozsir</itunes:author> |
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 'package:flutter_hooks/flutter_hooks.dart'; | |
| import 'package:signals/signals_flutter.dart'; | |
| import 'package:signals_hooks/signals_hooks.dart'; | |
| import 'package:sqlite3/common.dart'; | |
| import 'package:sqlite3/sqlite3.dart'; | |
| const _memoryPath = ':memory:'; | |
| CommonDatabase useDatabase({ | |
| String path = _memoryPath, | |
| String? vfs, |
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_web: |
NewerOlder