Skip to content

Instantly share code, notes, and snippets.

View Hesamedin's full-sized avatar
🏠
Busy Busy Busy

Hesam Hesamedin

🏠
Busy Busy Busy
View GitHub Profile
// Dart imports:
import 'dart:convert';
import 'dart:typed_data';
// Flutter imports:
import 'package:flutter/foundation.dart' show kIsWeb;
// Package imports:
import 'package:get_it/get_it.dart';
import 'package:universal_html/html.dart';
@Hesamedin
Hesamedin / top_10_frequent_words.dart
Created May 4, 2022 17:43
Write a function top10words that takes as input a list of words and returns a list of 10 most frequent words in the input list
// import 'package:collection/collection.dart';
// Write a function top10words that takes as input a list of words
// and returns a list of 10 most frequent words in the input list
void main() {
// TODO:: call top10words on words list below
// var top10 = top10words(words);
// expects top10 to include "Iris", "Elisa", "Jack"
@Hesamedin
Hesamedin / Podfile
Created July 29, 2022 18:01
Podfile sample of a Flutter project.
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
@Hesamedin
Hesamedin / clean_run_ios.sh
Last active July 29, 2022 19:49
Clean ios project of a Flutter project and Run it.
#!/bin/bash
set -e
echo "The script you are running is: $(dirname "$0")/$(basename "$0")"
function runDebug() {
flutter run iOS --debug --target=lib/main_dev.dart
}
function runRelease() {