Skip to content

Instantly share code, notes, and snippets.

View nimi0112's full-sized avatar
🎯
Focusing

Nimish Nandwana nimi0112

🎯
Focusing
View GitHub Profile
void main() {
int bagCapacityInKg = 10;
final input = <Pair<int, int>>[
Pair<int, int>(2, 1000),
Pair<int, int>(4, 8000),
Pair<int, int>(3, 6000),
Pair<int, int>(3, 18000),
Pair<int, int>(12, 12000),
];
@nimi0112
nimi0112 / RegexForStringReplace.dart
Created January 27, 2022 01:17
Regex for string pattern replace
void main() {
String id1= "google-oauth2-117279235649443415135";
String id2 = "auth0|61e7c4b1b1392e00699b50af";
print(id1.replaceAll(RegExp('[|-]'), ''));
print(id2.replaceAll(RegExp('[|-]'), ''));
}
@nimi0112
nimi0112 / bitrise.yaml
Created October 7, 2021 15:01
Bitrise Yaml file with Slack Integration
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
import 'dart:io';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:google_maps_webservice/places.dart';
import 'package:rxdart/rxdart.dart';
GoogleMapsPlaces _places =
GoogleMapsPlaces(apiKey: "API_KEY");