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
/*! | |
* rrule.js - Library for working with recurrence rules for calendar dates. | |
* https://github.com/jkbrzt/rrule | |
* | |
* Copyright 2010, Jakub Roztocil and Lars Schoning | |
* Licenced under the BSD licence. | |
* https://github.com/jkbrzt/rrule/blob/master/LICENCE | |
* | |
* Based on: | |
* python-dateutil - Extensions to the standard Python datetime module. |
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
<?php | |
// add to your theme's functions.php file | |
add_filter('upload_mimes', 'add_custom_upload_mimes'); | |
function add_custom_upload_mimes($existing_mimes) { | |
$existing_mimes['otf'] = 'application/x-font-otf'; | |
$existing_mimes['woff'] = 'application/x-font-woff'; | |
$existing_mimes['ttf'] = 'application/x-font-ttf'; | |
$existing_mimes['svg'] = 'image/svg+xml'; | |
$existing_mimes['eot'] = 'application/vnd.ms-fontobject'; | |
return $existing_mimes; |
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 'dart:convert'; | |
import 'package:dio/dio.dart'; | |
import 'package:dart_jsona/dart_jsona.dart'; | |
import 'package:flutter/foundation.dart'; | |
/// Dio Transformer used to automatically serialize and | |
/// deserialize JSON-API payloads. | |
class JsonApiTransformer extends DefaultTransformer { | |
static const kJsonApiMimeType = 'application/vnd.api+json'; |
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
// Make sure to replace <YOUR_LOCAL_IP> with | |
// the external IP of your computer if you're using Android. | |
// Note that we're using port 8888 which is Charles' default. | |
String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
// Create a new HttpClient instance. | |
HttpClient httpClient = new HttpClient(); | |
// Hook into the findProxy callback to set | |
// the client's proxy. |
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
// Make sure to replace <YOUR_LOCAL_IP> with | |
// the external IP of your computer if you're using Android. | |
// Note that we're using port 8888 which is Charles' default. | |
String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
// Create a new HttpClient instance. | |
HttpClient httpClient = new HttpClient(); | |
// Hook into the findProxy callback to set | |
// the client's proxy. |
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
// Make sure to replace <YOUR_LOCAL_IP> with | |
// the external IP of your computer if you're using Android. | |
// Note that we're using port 8888 which is Charles' default. | |
String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
// Create a new Dio instance. | |
Dio dio = Dio(); | |
// Tap into the onHttpClientCreate callback | |
// to configure the proxy just as we did earlier. |
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
{"lastUpload":"2019-12-29T20:41:03.577Z","extensionVersion":"v3.4.3"} |
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
[ +507 ms] executing: /usr/bin/xcrun simctl install 790FC845-4FE6-49C0-8B15-09E3BE74FA3F /Users/jamesdixon/Projects/flutter/hive_test/build/ios/iphonesimulator/Runner.app | |
[+1021 ms] executing: /usr/bin/plutil -convert json -o - /Users/jamesdixon/Projects/flutter/hive_test/build/ios/iphonesimulator/Runner.app/Info.plist | |
[ +20 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Users/jamesdixon/Projects/flutter/hive_test/build/ios/iphonesimulator/Runner.app/Info.plist | |
[ ] | |
{"CFBundleName":"hive_test","DTSDKName":"iphonesimulator12.4","DTXcode":"1030","CFBundleIcons~ipad":{"CFBundlePrimaryIcon":{"CFBundleIconFiles":["AppIcon20x20","AppIcon29x29","AppIcon40x40","Ap | |
pIcon60x60","AppIcon76x76","AppIcon83.5x83.5"],"CFBundleIconName":"AppIcon"}},"UILaunchStoryboardName":"LaunchScreen","DTSDKBuild":"16G73","CFBundleDevelopmentRegion":"en","CFBundleVersion":"1" | |
,"BuildMachineOSBuild":"18F132","DTPlatformName":"iphonesimulator","CFBundlePackageType":"APPL","CFBundleShortVersionString":"1.0.0","CFBundleSuppo |
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
# pubspec.yaml | |
dependencies: | |
logs: | |
git: https://github.com/pq/logs |
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
// main.dart | |
import 'package:logs/logs.dart'; | |
final Log httpLog = Log('http'); | |
void main() { | |
httpLog.enabled = true; | |
} |
NewerOlder