Skip to content

Instantly share code, notes, and snippets.

View hunglethanh9's full-sized avatar

Hung Le hunglethanh9

  • FPT University
  • Hanoi,Vietnam
View GitHub Profile
@bnolan
bnolan / moms.md
Last active May 29, 2019 02:12
# MOMS Architecture - Monolith with Opensource Microservices

These are my thoughts on the MOMS architecture:

Monolith with Opensource Microservices.

Basically, you write your app as a monolith because its quick and easy.

And when you have a subsystem of sufficient complexity and independent enough (doesn’t require being deeply enmeshed in your app), you split it out to a microservice that you opensource.

By opensourcing it, it makes you think of how other people might use it, so you make the APIs a bit more generic, you document it better with a readme, and you standardise the deployment so it’s easy for you to deploy.

@seisvelas
seisvelas / first-NN.ipynb
Last active May 29, 2019 11:00
My First Neural Network.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019 13:32
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

Describing Self-Descriptive Data with DFDL and Apache Daffodil

Self-descriptive data can be difficult to process since the format of the data is not fixed, but is instead described by metadata. The [Data Format Description Language (DFDL)] and [Apache Daffodil] are powerful tools that can describe and parse a wide variety of data, but even some self-descriptive data formats can prove to be a challenge, particularly when they are logically self-descriptive. Below we detail what DFDL is, what Apache Daffodil is, and a generic approach to use them to describe and parse complex self-descriptive data.

Introduction to DFDL

The [Data Format Description Language (DFDL)] is a specification, developed by the [Open Grid Forum], capable of describing many data formats, including both textual and binary, scientific and numeric, legacy and modern, commercial record-oriented, and many industry and military standards. It defines a language that is a subset of W3C XML schema to describe the logical format of the dat

@michalc
michalc / table_csv_view.py
Created March 7, 2019 09:19
Django + gevent + psycopg2 download whole PostgreSQL table as CSV
import csv
import logging
import gevent
from psycopg2 import (
connect,
sql,
)
from django.conf import (
@rain-1
rain-1 / closure-conversion.rkt
Created February 16, 2019 10:06
Closure Conversion
#lang racket
;; this is a stand alone simple version of the closure conversion part of the hoist pass from the tarot compiler
;; see https://rain-1.github.io/scheme for more.
(require data/queue)
;; closure conversion for lambda calculus
;;
;; the input language is:
@suyash
suyash / Cargo.toml
Last active December 27, 2022 14:51
@karpathy's min-char-rnn.py in rust
[package]
name = "min-char-rnn-rs"
version = "0.1.0"
authors = ["Suyash <suyash93@protonmail.com>"]
edition = "2018"
[dependencies]
rulinalg = "0.4.2"
rand = "0.6.4"
indicatif = "0.11.0"
@jensenak
jensenak / reinvent-2018-schedule-helper.js
Last active November 21, 2018 02:35
Quick set of functions to make it easier to see what's available at re:Invent 2018. Intended for use from the browser console on the AWS re:Invent 2018 Event Catalog.
// Use the code below to simplify your re:Invent 2018 schedule search.
// Paste these into your browser console just once. They will remain in scope even after you change filters.
function openSchedules(elems) {
// As long as the list of elements is non-zero in length, expand the last element and call openSchedules with the rest.
if (elems.length) {
var el = elems.pop();
setTimeout(openSchedules, 200, elems); // You could shorten the timeout, but that probably isn't polite.
el.click();
} else {
@rxwei
rxwei / ad-manifesto.md
Last active November 9, 2023 09:58
First-Class Automatic Differentiation in Swift: A Manifesto
@w33ble
w33ble / design thinking.md
Last active June 23, 2024 12:53
Design Thinking

Design Thinking

A structured guide to the stuff you do anyway

design thinking diagram


Empathize