Skip to content

Instantly share code, notes, and snippets.

@eilzo
eilzo / main.dart
Created February 23, 2024 09:36
Custom Range Slider
import 'package:flutter/material.dart';
/// Flutter code sample for [RangeSlider].
void main() => runApp(const RangeSliderExampleApp());
class RangeSliderExampleApp extends StatelessWidget {
const RangeSliderExampleApp({super.key});
@override
@eilzo
eilzo / main.dart
Created September 28, 2023 16:57
textStream
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'dart:async';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@eilzo
eilzo / stt.py
Created August 14, 2023 09:41
STT Cloud Function Example
# Contents of requirements.txt:
# google-cloud-aiplatform==1.26.0
# requests==2.31.0
import base64
import json
import os
import re
import functions_framework
@eilzo
eilzo / sst.py
Created August 11, 2023 17:55
STT Cloud Function
import base64
import json
import os
import re
import functions_framework
import google.auth
import google.auth.transport.requests
import requests
@eilzo
eilzo / review.md
Created August 10, 2023 12:13
freeRasp wiki review

This page provides you all necessary information about freeRASP integration for FlutterFlow. Please read it carefully. If you have question, don't hesitate to open an issue.

Integrating freeRASP

In this section, you will implement the imported freeRASP Action.

  1. On your app's initial page, navigate to the UI Builder.
  2. On the right panel, click on Actions.
  3. In the Action Flow Editor box, click Open.
  4. In the newly opened window, click on On Page Load at the top.
@eilzo
eilzo / flutter_firebase_deployment.yml
Created July 29, 2023 18:00
Flutter Firebase Deployment GitHub Action
# On pushes or pull requests to the main branch of the repo,
# this action will run `flutter build web`, and deploy the web app
# to the linked Firebase project.
#
# Setup: Firebase Hosting must be set up in your Firebase project.
# See https://firebase.google.com/docs/hosting/github-integration.
#
# Run `firebase init` -> "Set up GitHub Action deploys" in order to generate
# a value for `secrets.FIREBASE_SERVICE_ACCOUNT_MYPROJECT` which this
# script needs. Running `init` will also generate some yaml action files; they
@eilzo
eilzo / ocr.py
Created July 3, 2023 17:52
OCR Cloud Function
import functions_framework
import google.auth
import google.auth.transport.requests
import requests
import functions_framework
@functions_framework.http
def ocr(request):
"""
@eilzo
eilzo / README.md
Last active June 19, 2023 17:09
Window Listener State Changes

To set up:

  1. Create new Flutter project via flutter create newProject

  2. Replace homepage with home_page.dart

  3. Run flutter build web

  4. Rename build/web/index.html to app.html