Skip to content

Instantly share code, notes, and snippets.

View guopp's full-sized avatar
🌴
On vacation

guopp guopp

🌴
On vacation
View GitHub Profile
@parthdave93
parthdave93 / api_call.dart
Created July 1, 2020 19:11
Flutter Web file pick and upload via multipart full example
//example function body
Map<String, dynamic> fields = {
"data": filedValue,
};
var request = http.MultipartRequest(
"POST", Uri.parse('url'),
);
request.files.add(
@seven332
seven332 / html.dart
Created March 22, 2020 02:59
flutter html to InlineSpan
import 'package:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
import 'package:html/dom.dart';
import 'package:html/parser.dart' as parser;
import 'html_color.dart' as htmlColor;
// TODO Add tag handler
// TODO Add GestureRecognizer for a tag
InlineSpan parse(String html, TextStyle style) {
@knightsc
knightsc / build-xnu-6153.11.26.sh
Created February 18, 2020 15:08
A script to build XNU version 6153.11.26 (macOS Catalina 10.15).
#! /bin/bash
#
# build-xnu-6153.11.26.sh
# Scott Knight
#
# Based on the script by Brandon Azad
# https://gist.github.com/bazad/654959120a423b226dc564073b435453
#
# A script showing how to build XNU version 6153.11.26 on macOS Catalina
# 10.15 with Xcode 11.13.1.
@elisar4
elisar4 / main.dart
Last active June 28, 2022 02:25
Flutter iOS Keyboard Animation
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
@tadija
tadija / Xcode Semi-Automatic Versioning.md
Last active August 11, 2022 19:55
Xcode Semi-Automatic Versioning | Bump Build Number | Bump Version Number

Xcode Semi-Automatic Versioning

Instructions:

First Things First

In order for agvtool to work properly you must first set
Project Settings / Build Settings / Versioning / Versioning System to Apple Generic.

Bump Build Number

  1. Create new shared scheme 'Bump Build Number'
@azenla
azenla / event_loop.dart
Last active December 19, 2024 22:01
Simulation of the Dart Event Loop in Dart.
/// Dart is built around a timer, which basically schedules functions in a queue.
/// The Future class is essentially just sugar on top of the event loop.
/// To help people understand what the event loop actually does, I have written code which implements the event loop.
/// See https://www.dartlang.org/articles/event-loop/ for more information.
import "dart:async";
class EventLoop {
/// Function Queue.
static final List<Function> queue = [];