Skip to content

Instantly share code, notes, and snippets.

View fer-ri's full-sized avatar

Ferri Sutanto fer-ri

  • Purwokerto, Indonesia
View GitHub Profile
@fer-ri
fer-ri / spleeter.md
Created October 22, 2023 08:32 — forked from dungsaga/spleeter.md
Voice removal AKA karaoke creator
This file has been truncated, but you can view the full file.
{
"kind": "webfonts#webfontList",
"items": [
{
"family": "ABeeZee",
"variants": [
"regular",
"italic"
],
"subsets": [
@fer-ri
fer-ri / docker-compose.yml
Created March 8, 2023 05:54 — forked from elvinlari/docker-compose.yml
Docker Compose yaml file
version: '3'
networks:
laravel:
services:
nginx:
build:
context: ./docker
dockerfile: nginx.dockerfile
@fer-ri
fer-ri / bmi.dart
Created September 25, 2020 03:55 — forked from roipeker/bmi.dart
BMI Calculator clone with GetX (+ Theme modes)
import 'dart:async';
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
@fer-ri
fer-ri / README.md
Created August 3, 2020 09:41 — forked from CodingDoug/README.md
Patterns for security with Firebase Authentication: offload work to Cloud Functions

This is the runnable sample code from the blog post [Patterns for security with Firebase Authentication: offload work to Cloud Functions][1]. It discusses offloading work from a client app to Cloud Functions using an authentication trigger.

  1. Create a new Firebase project
  2. Enable email/password authentication
  3. Provision Cloud Firestore and apply the rules given in this gist
  4. Use the Firebase CLI to create a workspace for Functions using TypeScript
  5. Deploy the given HTML and JavaScript to Firebase Hosting (the CLI emulator will also work).
  6. Deploy the function code to Cloud Functions using the Firebase CLI
@fer-ri
fer-ri / main.dart
Last active July 31, 2020 19:28
GetX Debug Template
import 'package:flutter/material.dart';
import 'package:get/get.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GetMaterialApp(
initialRoute: '/',
@fer-ri
fer-ri / fade_on_scroll.dart
Created July 29, 2020 02:57 — forked from smkhalsa/fade_on_scroll.dart
A Widget that automatically fades its child based on scroll position
import 'package:flutter/material.dart';
class FadeOnScroll extends StatefulWidget {
final ScrollController scrollController;
final double zeroOpacityOffset;
final double fullOpacityOffset;
final Widget child;
FadeOnScroll(
{Key key,
@fer-ri
fer-ri / main.dart
Created June 28, 2020 09:36 — forked from PetreaLoredana/main.dart
This code generates a screen with a custom bidirectional and infinite scrollable PageView in Flutter. Replace your own assets names. More details can be found on Medium. https://medium.com/p/dfff43649c23/edit
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(CustomPageViewApp());
class CustomPageViewApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
@fer-ri
fer-ri / main.dart
Created June 8, 2020 11:56
flutter bug floatingLabelBehavior not obey InputDecorationTheme
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
inputDecorationTheme: InputDecorationTheme(
@fer-ri
fer-ri / main.dart
Created June 8, 2020 11:55
flutter bug floatingLabelBehavior not obey InputDecorationTheme
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
inputDecorationTheme: InputDecorationTheme(