This file contains 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
public override async Task<IEnumerable<City>> GetAllAsync() | |
{ | |
var cities = new Dictionary<long, City>(); | |
//var areas = new Dictionary<long, Area>(); | |
const string sql = | |
@"SELECT c.id, c.name, a.id, a.name FROM cities c | |
INNER JOIN city_areas ca ON ca.city_id = c.id | |
INNER JOIN areas a ON a.id = ca.area_id"; | |
This file contains 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 'dart:convert'; | |
import 'dart:async' show Future; | |
import 'package:flutter/services.dart' show rootBundle; | |
class Student { | |
String studentId; | |
String studentName; | |
int studentScores; |
This file contains 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
# Facebook Graph API Example in Python | |
# by James Thornton, http://jamesthornton.com | |
# Facebook API Docs | |
# https://developers.facebook.com/docs/graph-api/using-graph-api#reading | |
# Get Your Facebook Access Token Here... | |
# https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me | |
# Before running this script... |