Skip to content

Instantly share code, notes, and snippets.

View chilarai's full-sized avatar
♠️
Ace of Spades

Chilarai Mushahary chilarai

♠️
Ace of Spades
View GitHub Profile
@chilarai
chilarai / testing.cpp
Last active June 22, 2020 06:24
Qt5 Google OAuth : Testing.cpp
//Constructor
Testing::Testing(QObject *parent) : QObject(parent)
{
this->google = new QOAuth2AuthorizationCodeFlow(this);
// Set Scope or Permissions required from Google
// List can be obtained from https://developers.google.com/identity/protocols/oauth2/scopes
this->google->setScope("email https://www.googleapis.com/auth/drive.readonly");
@chilarai
chilarai / main.cpp
Last active June 21, 2020 09:49
Qt5 Google OAuth: main.cpp
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "googleauth.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
origin destination count
ABE ATL 853
ABE BHM 1
ABE CLE 805
ABE CLT 465
ABE CVG 247
ABE DTW 997
ABE JFK 3
ABE LGA 9
ABE ORD 1425
iata name city state country latitude longitude
00M Thigpen Bay Springs MS USA 31.95376472 -89.23450472
00R Livingston Municipal Livingston TX USA 30.68586111 -95.01792778
00V Meadow Lake Colorado Springs CO USA 38.94574889 -104.5698933
01G Perry-Warsaw Perry NY USA 42.74134667 -78.05208056
01J Hilliard Airpark Hilliard FL USA 30.6880125 -81.90594389
01M Tishomingo County Belmont MS USA 34.49166667 -88.20111111
02A Gragg-Wade Clanton AL USA 32.85048667 -86.61145333
02C Capitol Brookfield WI USA 43.08751 -88.17786917
02G Columbiana County East Liverpool OH USA 40.67331278 -80.64140639
{
"nodes": [
{ "name": "Myriel", "group": 1 },
{ "name": "Napoleon", "group": 1 },
{ "name": "Mlle.Baptistine", "group": 1 },
{ "name": "Mme.Magloire", "group": 1 },
{ "name": "CountessdeLo", "group": 1 },
{ "name": "Geborand", "group": 1 },
{ "name": "Champtercier", "group": 1 },
{ "name": "Cravatte", "group": 1 },
id rate
1001 .097
1003 .091
1005 .134
1007 .121
1009 .099
1011 .164
1013 .167
1015 .108
1017 .186
date,temp
2010/01/01 00:00,39.4
2010/01/01 01:00,39.2
2010/01/01 02:00,39.0
2010/01/01 03:00,38.9
2010/01/01 04:00,38.8
2010/01/01 05:00,38.7
2010/01/01 06:00,38.7
2010/01/01 07:00,38.6
2010/01/01 08:00,38.7
symboling,losses,make,fuel,aspiration,num-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,price
3,?,alfa-romero,gas,std,2,convertible,rwd,front,88.60,168.80,64.10,48.80,2548,dohc,4,130,mpfi,3.47,2.68,9.00,111,5000,21,27,13495
3,?,alfa-romero,gas,std,2,convertible,rwd,front,88.60,168.80,64.10,48.80,2548,dohc,4,130,mpfi,3.47,2.68,9.00,111,5000,21,27,16500
1,?,alfa-romero,gas,std,2,hatchback,rwd,front,94.50,171.20,65.50,52.40,2823,ohcv,6,152,mpfi,2.68,3.47,9.00,154,5000,19,26,16500
2,164,audi,gas,std,4,sedan,fwd,front,99.80,176.60,66.20,54.30,2337,ohc,4,109,mpfi,3.19,3.40,10.00,102,5500,24,30,13950
2,164,audi,gas,std,4,sedan,4wd,front,99.40,176.60,66.40,54.30,2824,ohc,5,136,mpfi,3.19,3.40,8.00,115,5500,18,22,17450
2,?,audi,gas,std,2,sedan,fwd,front,99.80,177.30,66.30,53.10,2507,ohc,5,136,mpfi,3.19,3.40,8.50,110,5500,19,25,15250
1,158,audi,gas,std,4,s
symboling,losses,make,fuel,aspiration,num-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,price
3,?,alfa-romero,gas,std,2,convertible,rwd,front,88.60,168.80,64.10,48.80,2548,dohc,4,130,mpfi,3.47,2.68,9.00,111,5000,21,27,13495
3,?,alfa-romero,gas,std,2,convertible,rwd,front,88.60,168.80,64.10,48.80,2548,dohc,4,130,mpfi,3.47,2.68,9.00,111,5000,21,27,16500
1,?,alfa-romero,gas,std,2,hatchback,rwd,front,94.50,171.20,65.50,52.40,2823,ohcv,6,152,mpfi,2.68,3.47,9.00,154,5000,19,26,16500
2,164,audi,gas,std,4,sedan,fwd,front,99.80,176.60,66.20,54.30,2337,ohc,4,109,mpfi,3.19,3.40,10.00,102,5500,24,30,13950
2,164,audi,gas,std,4,sedan,4wd,front,99.40,176.60,66.40,54.30,2824,ohc,5,136,mpfi,3.19,3.40,8.00,115,5500,18,22,17450
2,?,audi,gas,std,2,sedan,fwd,front,99.80,177.30,66.30,53.10,2507,ohc,5,136,mpfi,3.19,3.40,8.50,110,5500,19,25,15250
1,158,audi,gas,std,4,s
[
{
"id": 1,
"name": "Grafieks"
},
{
"id": 2,
"name": "analytics",
"parent": 1
},