Skip to content

Instantly share code, notes, and snippets.

View simplesoft-duongdt3's full-sized avatar

tiny Flutter team simplesoft-duongdt3

View GitHub Profile
@simplesoft-duongdt3
simplesoft-duongdt3 / embedded-file-viewer.md
Created October 17, 2023 15:55 — forked from Aarbel/embedded-file-viewer.md
Free desktop and mobile files viewers and editors: Google Drive, OneDrive, Zoho public viewers and editors.

Desktop / Web

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

Format :

    http://view.officeapps.live.com/op/view.aspx?src=[ONLY_OFFICE_FILE_URL_ENCODED]
    
 
@simplesoft-duongdt3
simplesoft-duongdt3 / dynamic_subdomains
Created May 24, 2023 09:43 — forked from v1shwa/dynamic_subdomains
Dynamically map subdomains to different ports on the server - using Nginx
server {
listen 80;
# maps p8080.example.com -> localhost:8080
server_name ~^p(?<port>[^.]+)\.example\.com$;
location / {
proxy_pass http://localhost:$port;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@simplesoft-duongdt3
simplesoft-duongdt3 / main.dart
Last active April 24, 2023 03:05
Flutter Listview
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
static const String _title = 'Flutter ListView Sample';
@override
@simplesoft-duongdt3
simplesoft-duongdt3 / grokking_to_leetcode.md
Created October 21, 2022 08:12 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@simplesoft-duongdt3
simplesoft-duongdt3 / README.md
Created April 19, 2022 15:07 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@simplesoft-duongdt3
simplesoft-duongdt3 / pubspec_base_sync.py
Created April 1, 2022 08:56 — forked from fabriciovergara/pubspec_base_sync.py
Flutter: Sync pubspec file in melos project with flavors
import sys
import glob
import ruamel.yaml
yaml = ruamel.yaml.YAML()
def main():
# python3 pubspec_base_sync.py ../pubspec_base_android.yaml ../pubspec_base_android_huawei.yaml
@simplesoft-duongdt3
simplesoft-duongdt3 / notes_soft_skills.md
Created August 7, 2019 08:55 — forked from raviwu/notes_soft_skills.md
[Notes] Soft Skills: The software developer's life manual

Page 47

This kind of mindset is crucial to managing your career, because when you start to think of yourself as a business, you start to make good business decisions.

Page 52

Every step you take without a clear direction is a wasted step. Don’t randomly walk through life without a purpose for your career.

Your big goal should be something not too specific, but clear enough that you can know if you’re steering toward it or not. Think about what you want to ultimately do with your career.

import 'package:flutter/material.dart';
import 'dart:math' as math;
import 'dart:async';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@simplesoft-duongdt3
simplesoft-duongdt3 / firebase_database.rules.json
Created May 17, 2019 01:43 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@simplesoft-duongdt3
simplesoft-duongdt3 / fireabase_database_rules_for_chat_app.js
Created May 17, 2019 01:42 — forked from katowulf/gist:4741111
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users