Skip to content

Instantly share code, notes, and snippets.

View iducool's full-sized avatar

Idrish Sorathiya iducool

  • Baroda
View GitHub Profile
@iducool
iducool / analysis_options.yaml
Created February 6, 2021 12:46
Customized linting rules for Flutter
include: package:effective_dart/analysis_options.yaml
analyzer:
errors:
missing_required_param: error
missing_return: error
exclude:
- "**/*.g.dart"
linter:
@iducool
iducool / sentry_interceptor.dart
Created January 26, 2021 09:16
Sentry web services tracking feature with Dio API client
import 'package:dio/dio.dart';
import 'package:sentry_flutter/sentry_flutter.dart';
class SentryInterceptor extends InterceptorsWrapper {
@override
Future onResponse(Response response) {
Sentry.addBreadcrumb(
Breadcrumb(
type: 'http',
category: 'http',
This file has been truncated, but you can view the full file.
(base) rspls-mbp-5:j2objc-common-libs-e2e-test myUser$ ./run-test.sh libraryBuilds/org.apache.commons-commons-math3
if [[ "$PWD" =~ libraryBuilds ]]; then
echo "Should be run from project root and not libraryBuilds directory"
exit 1
fi
TEST_DIR=$1
pushd $TEST_DIR
~/Documents/J2ObjC/j2objc-common-libs-e2e-test/libraryBuilds/org.apache.commons-commons-math3 ~/Documents/J2ObjC/j2objc-common-libs-e2e-test
@iducool
iducool / ScatterPlot.cs
Created January 15, 2016 06:57
Date Graph issue
using System;
using System.Drawing;
using System.Collections.Generic;
using CoreGraphics;
using CoreText;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Security.Cryptography;
#if __UNIFIED__
@iducool
iducool / gist:a2eaa76fd8a7320e0b97
Created September 10, 2014 11:45
Detailed date formatter
NSString *format = @"yyyy:MM:dd HH:mm:ss";
NSString *dummyDateString = @"2014:09:10 01:34:10";
NSString *desiredFormat = @"EEEE, MMMM dd, yyyy, hh:mm a";
NSDateFormatter *df =[[NSDateFormatter alloc] init];
[df setDateFormat:format];
NSDate *currentDate = [df dateFromString:dummyDateString];
[df setDateFormat:desiredFormat];
NSString *finalDateString = [df stringFromDate:currentDate];