Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:ugv_fe/models/locations.dart' as locations;
class MapsView extends StatefulWidget {
const MapsView({Key? key}) : super(key: key);
@override
State<MapsView> createState() => _MapsViewState();
}
//Assignment 1:
//Answer A:
//reading input (DataBricks Console not wipro vdi)
var inp = sc.textFile("/FileStore/tables/log_file.txt")
// get the Header
var header = inp.first()
//Get only details record by removing header
[
{
"id": 8430,
"title": "Honey Chilli Potato Recipe | Crispy Restaurant Style Starters &#8211; CookingShooking",
"content_html": "<p>Hey Foodies,</p>\n<p>Today’s recipe is of Indo Chinese origin, your favorite Honey Chilli Potato homemade. If you like sweet and spicy flavors then without even giving it a second thought quickly make this recipe. Kids love it and adults love it even more. French fries shaped potatoes twice coated with batter and then twice fried for that extra crispness. Sauce flavored with garlic and onion and sauces added to elevate the taste, little honey and tomato ketchup to add to the sweetness and then fried potatoes tossed in the rich thick sauce….honey chili potatoes are ready. Sure shot hit at your parties. Let’s begin making it.</p>\n<p><img class=\"alignnone wp-image-8431 size-full\" src=\"https://cookingshooking.com/wp-content/uploads/2018/10/crispy-honey-chilli-potatoes-recipe.jpg\" alt=\"\" width=\"1280\" height=\"720\" srcset=\"https://cookingshooking.com/wp-c
[{"id":1,"post_title":"Recipe 1","post_content":"This is recipe 1 \n\n\n![text](/uploads/f8d87d8b6b1e41fe9ecd965078c57dc1.png)","post_author":{"id":1,"username":"Yaman","email":"yaman@cookingshooking.com","provider":"local","confirmed":1,"blocked":null,"role":1,"created_at":"2019-08-07T19:52:11.634Z","updated_at":"2019-08-07T19:52:11.656Z"},"post_status":"2","created_at":"2019-08-07T19:52:31.560Z","updated_at":"2019-08-07T23:09:33.395Z","post_featured_image":{"id":3,"name":"ECO POS LOGO COMPLETE.png","hash":"3f00b79f1c1a44ac950a40df5c26eccb","sha256":"ljsQ-S_P0VwcyVspCE0EjLG1iY-r4JiE6gbyb1-kjIA","ext":".png","mime":"image/png","size":"129.94","url":"/uploads/3f00b79f1c1a44ac950a40df5c26eccb.png","provider":"local","public_id":null,"created_at":"2019-08-07T21:40:05.514Z","updated_at":"2019-08-07T21:40:05.551Z"},"postingredients":[{"id":1,"ingredient":1,"ingredient_unit":"2 Litre","post":1,"created_at":"2019-08-07T22:46:42.714Z","updated_at":"2019-08-07T23:09:33.391Z"},{"id":2,"ingredient":2,"ingredient_unit":"
@rajesh-h
rajesh-h / gist:b9add9c00ee3a14764b324ec30c65344
Created February 22, 2018 17:12
DebugInformation_Just10minutes
AttributeError at /api/childlist/
'OneToOneField' object has no attribute 'rel'
Request Method: GET
Request URL: http://127.0.0.1:8000/api/childlist/?customer_id=2
Django Version: 2.0.1
Exception Type: AttributeError
Exception Value:
'OneToOneField' object has no attribute 'rel'
Exception Location: C:\Users\MyUsername\Documents\MyFiles\Company Projects\TDM\tdmve_py36\lib\site-packages\url_filter\filtersets\django.py in _build_filterset_from_related_field, line 126
Python Executable: C:\Users\MyUsername\Documents\MyFiles\Company Projects\TDM\tdmve_py36\Scripts\python.exe
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { IonicPage, NavController } from 'ionic-angular';
import { WpApiPosts } from 'wp-api-angular';
import { Observable } from 'rxjs';
import { URLSearchParams } from '@angular/http';
import { AppearIn } from './../../../src/utils/animations';
import { IListComponent } from './../../../src/interfaces';
import { ListParentComponent } from './../../../src/ListParent';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { wpApiPosts } from 'wp-api-angular';
/**
* Generated class for the CustomHomePage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
/**
* Implements hook_menu().
*/
function module_categories_menu() {
var items = {};
items['categories_view'] = {
title:'Subscribed Products',
page_callback: 'module_categories_articles_page'
};
return items;