Skip to content

Instantly share code, notes, and snippets.

import 'package:cached_network_image/cached_network_image.dart';
import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
import 'package:skycap/ui/screens/submit_footage/image_editor_screen.dart';
import 'package:skycap/utils/scaffold_app_bar.dart';
class FullScreenView extends StatefulWidget {
final imageUrl;
final showEdit;
import requests
import unittest
class TestNotesAPI(unittest.TestCase):
base_url = "https://afternoon-beach-08354.herokuapp.com/"
def test_add_note(self):
sample_note = {"content": "do prog2 assignment sooon!"}
{
"status": 200,
"error": null,
"data": [
{
"name": "Meeting Room 1",
"capacity": "10",
"instruments": [
{
"name": "Conference Table",
import 'dart:convert';
import 'package:corereservations/models/facility.dart';
import 'package:http/http.dart' as http; //alias
class FacilitiesApi {
getFacilities() async {
var response = await http.get(Uri.parse(
'https://gist.githubusercontent.com/mhassanist/38201f235f6c1b7a0b4f89effb89a399/raw/96ae3599141d35af90337b9d24b8550e36ed1a87/facilities.json'));
var responseJson = jsonDecode(response.body);
BaseURL (DEV): https://facilitiesapi.herokuapp.com
BaseURL (Production) : https://facilitiesapi.coreistnabul.com
GET /facilities/<int:facility_id>/reservations
POST /facilities/<int:facility_id>/reservations
{
"user_id": 1,
"start_time": "2023-04-01T14:30:00",
{
"status" : {
"code":200,
"message": "menu ready"
},
"menu": [
{
"name": "Burger",
"price": 6.0,
"available": true
72.5, 68.3, 75.1, 80.7, 64.9, 77.2, 71.8, 69.4, 73.6, 66.2, 79.0, 74.3, 70.6, 67.9, 76.8, 78.5, 62.7, 68.1, 72.9, 65.4, 81.2, 63.8, 70.2, 75.6, 69.7, 72.4, 67.3, 74.9, 61.5, 80.1
from datetime import date
print("Al-Nakba, also known as the Palestinian Catastrophe, took place in 1948. This term describes the events that followed the establishment of the state of Israel and the resulting displacement of numerous Palestinian Arabs.")
print ("In which year did Al-Nakba occur in Palestine?")
#answer is a variable
answer = input ()
if answer.strip() == "1948":
print ("Correct Answer!")
### Copyrights reserved to CS50 AI Course
import itertools
class Sentence():
def evaluate(self, model):
"""Evaluates the logical sentence."""
raise Exception("nothing to evaluate")
THE ADVENTURE OF THE NOBLE BACHELOR
The Lord St. Simon marriage, and its curious termination, have long
ceased to be a subject of interest in those exalted circles in which
the unfortunate bridegroom moves. Fresh scandals have eclipsed it,
and their more piquant details have drawn the gossips away from this
four-year-old drama. As I have reason to believe, however, that the
full facts have never been revealed to the general public, and as my
friend Sherlock Holmes had a considerable share in clearing the
matter up, I feel that no memoir of him would be complete without