Skip to content

Instantly share code, notes, and snippets.

View definev's full-sized avatar
💙
Fluttering

Duong Bui Dai definev

💙
Fluttering
View GitHub Profile
@definev
definev / shader.glsl
Created July 1, 2023 04:44
Piet Mondrian painting.
// Author: Bui Dai Duong (@definev)
// Title: Piet Mondrian
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;

Customer loyalty hyperledger

A blockchain system that stores loyalty points transparently

Installation

import 'package:goopay/src/_internal/ekyc/hapi_ekyc.dart';
EkycResult result(Map<String, dynamic> json) {
dynamic object = json['object'];
dynamic address = object['post_code'].firstWhere(
(element) => element.type == 'address',
orElse: () => object['post_code'][0],
);
if (object['id_fake_warning'] == 'yes') {
import UIKit
import Flutter
#if !targetEnvironment(simulator)
import FinalSDK
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, ICEkycCameraDelegate {
var methodChannel: FlutterResult?
@definev
definev / tool_setup.sh
Last active October 22, 2022 00:27
bamboo ios install tool script
#!/bin/sh
# save this script into "bamboo-ios" folder
# run "bash tool_setup.sh"
# Reset
Color_Off=''
# Regular Colors
Red=''
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@definev
definev / grid_layout.dart
Last active June 10, 2022 15:12
An grid animation.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
void main() {
runApp(const CloneWar());
}
class CloneWar extends StatelessWidget {
@definev
definev / center.dart
Created May 24, 2022 16:02
How to center without Column
import 'package:flutter/material.dart';
main() {
runApp(
const MaterialApp(
home: Scaffold(
body: Center(
child: SizedBox(
height: 50,
child: DecoratedBox(
@definev
definev / HexDisplay.c
Last active March 1, 2022 14:49
Intel hex display written in C
//Intel HEX format: https://en.wikipedia.org/wiki/Intel_HEX
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Độ dài tối đa của 1 dòng
#define MAX_HEX_LENGTH 16
// Số dòng in ra tối đa trong 1 lần
#define MAX_HEX_LINE 25
@definev
definev / main.c
Created December 27, 2021 14:15
Mid-term 2021
#include <stdio.h>
#include <math.h>
#include <string.h>
char *cau_10(char mssv[])
{
int n;
printf("Nhap tham bien n: ");
scanf("%d", &n);
int m = n % 1000;