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
SELECT | |
date, year, month, day, duration, departure, departureName, destination, destinationName, departureTime, destinationTime, route, landingsDay, landingsNight, distance, remarks, signatureId, | |
flight.id AS id, | |
flight.aircraftId AS aircraftId, | |
flight.trashed AS trashed, | |
aircraft.registration AS aircraftRegistration, | |
aircraft.makeModel AS aircraftMakeModel, | |
aircraftCategory.name AS aircraftCategoryName, | |
field.name, | |
value.time, |
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
SELECT | |
date, year, month, day, duration, departure, departureName, destination, destinationName, departureTime, destinationTime, route, landingsDay, landingsNight, distance, remarks, signatureId, | |
flight.id AS id, | |
flight.aircraftId AS aircraftId, | |
flight.trashed AS trashed, | |
aircraft.registration AS aircraftRegistration, | |
aircraft.makeModel AS aircraftMakeModel, | |
aircraftCategory.name AS aircraftCategoryName, | |
field.name, | |
value.time, |
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
SELECT | |
IFNULL(SUM(duration), 0) AS duration, | |
IFNULL(SUM(landingsDay), 0) AS landingsDay, | |
IFNULL(SUM(landingsNight), 0) AS landingsNight | |
FROM ( | |
SELECT | |
flight.id, | |
MAX(duration) AS duration, | |
MAX(landingsDay) AS landingsDay, | |
MAX(landingsNight) AS landingsNight |
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 'package:go_router/go_router.dart'; | |
void main() { | |
runApp(MaterialApp(home: Routes())); | |
} | |
final GlobalKey<NavigatorState> rootNavigatorKey = GlobalKey<NavigatorState>(debugLabel: 'root'); | |
final GlobalKey<NavigatorState> firstNavigatorKey = GlobalKey<NavigatorState>(debugLabel: 'shell'); |
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 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import "dart:math"; | |
void main() { | |
runApp( | |
const ProviderScope( | |
child: MyApp(), | |
), | |
); |
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 'package:provider/provider.dart'; | |
import "dart:math"; | |
void main() { | |
runApp( | |
MultiProvider( | |
providers: [ | |
ChangeNotifierProvider(create: (context) => Person()), | |
], |
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
<script> | |
async function sample(){ | |
console.log('Hi!') | |
let res = await fetch('https://api.schoology.com/v1/messages/inbox', { | |
method: 'GET', | |
headers:{ | |
'Authorization': '[OAuth header...]', | |
'Accept': 'text/xml;q=1.0,application/json;q=0.0', | |
'Host': 'api.schoology.com', |
I hereby claim:
- I am cliftonlabrum on github.
- I am clifton (https://keybase.io/clifton) on keybase.
- I have a public key whose fingerprint is 79EE 3EB4 963A 8E85 F54D 730F 7834 822E 98A7 E495
To claim this, I am signing this object:
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
# add this if it's not already in your .htaccess file | |
RewriteEngine on | |
# the rule | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ http://brum.co/$1 [R=301,L] |
NewerOlder