Skip to content

Instantly share code, notes, and snippets.

View ayansg's full-sized avatar

Ayan Sengupta ayansg

  • NextGear Solutions, LLC.
  • Howrah
View GitHub Profile
@ayansg
ayansg / main.dart
Last active January 28, 2023 17:10
typedef RawDocument = Map<String,dynamic>;
typedef RawCollection = Iterable<RawDocument>;
void main() async {
final y = await _getIterable();
print(y);
print(y.runtimeType);
}
Future<RawCollection> _getIterable() async {
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
runApp(
const MyApp(),
);
}
@ayansg
ayansg / png_build.sh
Last active April 25, 2018 05:21 — forked from wuhao5/png_build.sh
build libpng for iOS/MacOS X
# ===========================================================================================================
# Enable bitcode for iOS. Updated iOS support to the minimum of iOS 10.3
# Added architecture specific --host flag to mark target platform for output library during cross compilation
# ===========================================================================================================
rm -rf install_*
rm -rf output-*
#build x86_64
ARCH="x86_64"
./configure --prefix=`pwd`/install_x86_64 CFLAGS="-Ofast -fembed-bitcode=marker -mios-version-min=10.3" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch x86_64" --disable-shared --enable-static --host="${ARCH}-apple-darwin"
@ayansg
ayansg / build_freetype.sh
Last active January 9, 2022 02:23 — forked from anonymous/build_freetype.sh
Compile-Freetype-For-iOS
#!/bin/bash
# Compile-Freetype-For-iOS
# Original Script https://github.com/jkyin/Compile-Freetype-For-iOS/blob/master/build_freetype.sh
# Revised by: l'L'l
#
# New Features Include: auto download latest version, fixed toolchain locations, other various tweeks
#
# The MIT License (MIT)
# Copyright (c) 2016 l'L'l