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/material.dart'; | |
| class ArticleDetailsPage extends StatelessWidget { | |
| final String title; | |
| final String author; | |
| final String content; | |
| const ArticleDetailsPage( | |
| {Key? key, | |
| required this.title, | 
  
    
      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
    
  
  
    
  | class ArticleSearchDelegate extends SearchDelegate<Article> { | |
| final List<Article> articles; | |
| ArticleSearchDelegate(this.articles); | |
| @override | |
| List<Widget> buildActions(BuildContext context) { | |
| return [ | |
| IconButton( | |
| icon: const Icon(Icons.clear), | 
  
    
      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/material.dart'; | |
| import 'article_details_page.dart'; | |
| class Article { | |
| final String title; | |
| final String author; | |
| final String description; | |
| Article( | |
| {required this.title, required this.author, required this.description}); | 
  
    
      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/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Web Keyboard Shortcuts Example', | |
| home: Scaffold( | 
  
    
      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/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | 
  
    
      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
    
  
  
    
  | // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8.17; | |
| contract SimpleBank { | |
| address payable public owner; | |
| uint256 public balance; | |
| event Deposit(address indexed _from, uint256 _value); | |
| event Withdrawal(address indexed _from, uint256 _value); | 
  
    
      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
    
  
  
    
  | /* | |
| - 2 player game to run on Blockchain | |
| - 4 possible outcomes: 1) tie; 2) rock crushes scissors; 3) paper covers rock; 4) scissors cut paper | |
| */ | |
| pragma solidity ^0.8.8; | |
| contract RockPaperScissors { | |
| address public player1; | |
| address public player2; | 
  
    
      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
    
  
  
    
  | from movie_model import MovieModel | |
| movieModel = MovieModel('movies') | |
| movieModel.fetchMovieData("The Sea Beast") | |
| movieModel.fetchMovieData("Kung Fu Panda") | 
  
    
      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 boto3 | |
| from boto3.dynamodb.conditions import Key | |
| dynamodb = boto3.resource('dynamodb') | |
| class DatabaseHelper: | |
| def fetch_data(self, table_name, title): | |
| response = dynamodb.Table(table_name).query( | |
| KeyConditionExpression=Key('title').eq(title), | |
| ) | 
  
    
      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 json | |
| from cerealbox.jsonable import as_jsonable | |
| from dynamodb_fetch_movies_helper import DatabaseHelper | |
| class MovieModel(): | |
| dynamodb = DatabaseHelper() | |
| def __init__(self, tableName): | |
| self.tableName = tableName | 
NewerOlder
        