Skip to content

Instantly share code, notes, and snippets.

View Sovann72's full-sized avatar

Sovann En Sovann72

  • Tenbox
  • Phnom Penh
  • 08:01 (UTC +07:00)
View GitHub Profile
@Sovann72
Sovann72 / index.html
Created August 6, 2024 10:46
Increase space between dotted border dots
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="my-box"></div>

Flutter devπŸ“±

@Sovann72
Sovann72 / inter_translation.dart
Created July 25, 2024 12:22
Interactive script to manually translate app keyword in dart
// * Interactive script to manually translate app keyword with https://pub.dev/packages/easy_localization
// ! Note: Khmer language which is UTF8 is not supported in command prompt or powershell since they're old and only support ASCII. Use new Windows Terminal or any other Terminal that support UTF8 encoding.
// ignore_for_file: avoid_print
import 'dart:convert';
import 'dart:io';
final _kh = File("<YOUR_KH_JSON_FILE_PATH>");
final _en = File("<YOUR_EN_JSON_FILE_PATH>");
@Sovann72
Sovann72 / check_equality_of_two_list.dart
Last active February 28, 2024 08:24
check-equality-of-two-list
// https://stackoverflow.com/a/22333042/15149752
import 'package:collection/collection.dart';
List<String> otherList = ['foo', 'bar', 'baz'];
List<String> something = ['bar', 'baz', 'foo'];
void checkTwoListForEquality(List<String> firstList, List<String> secList) {
Function unOrdDeepEq = const DeepCollectionEquality.unordered().equals;