Skip to content

Instantly share code, notes, and snippets.

View danielphan2003's full-sized avatar

Daniel Phan danielphan2003

View GitHub Profile

nt533.o21

Bao gồm Công nghệ truyền thông đa phương tiện, Hệ tính toán phân bố, Giải thuật xử lý song song và phân bố, Đánh giá hiệu năng hệ thống mạng máy tính.

Classes:

NT114.O21.MMCL,NT536.O22.MMCL.1,NT538.O21.MMCL.1,NT531.O21.MMCL,NT531.O21.MMCL.1,NT533.O21.MMCL,NT533.O21.MMCL.1,NT536.O22.MMCL,NT538.O21.MMCL

Script:

  • Hiện tại đơn: S + V(s/es)

nhận biết: every, during, usually, often v.v

thêm s/es khi S là he/she/it/Tên riêng/Một đối tượng nào đó

Phủ định hiện tại đơn: S + do/does not + V1

thêm do khi S là I/you/they/we

Unit 7 - Listening 1 (1-3)


1.

/t/ - /d/ mà theo sau là phụ âm => âm /t/-/d/ là âm câm

can't go /cant gəʊ/

=> đọc nhanh /can gəʊ/

@danielphan2003
danielphan2003 / csharp_compression_options.md
Last active April 10, 2023 19:10
chatgpt generated response for: create a table that shows what i can use to compress and decompress file in c# between files that are <=2gb, and those that are >2gb

Here's a table summarizing the options available in C# for compressing and decompressing files, based on their size:

File Size Compression Option Compression Class Decompression Option Decompression Class
<= 2 GB GZipStream System.IO.Compression GZipStream System.IO.Compression
DeflateStream System.IO.Compression DeflateStream System.IO.Compression
ZipArchive System.IO.Compression ZipArchive System.IO.Compression
ZipFile System.IO.Compression ZipFile System.IO.Compression
SharpZipLib (Third-party) ICSharpCode.SharpZipLib SharpZipLib (Third-party) ICSharpCode.SharpZipLib

|

@danielphan2003
danielphan2003 / openwrt-snapshot-fullcone.diff
Created February 11, 2023 17:09
openwrt@cefc543b029a7af72420a5c514245287cd3df933
diff --git a/package/libs/libnftnl/Makefile b/package/libs/libnftnl/Makefile
index 50ad11a2cf..58c4a9e8cb 100644
--- a/package/libs/libnftnl/Makefile
+++ b/package/libs/libnftnl/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libnftnl
PKG_CPE_ID:=cpe:/a:netfilter:libnftnl
PKG_VERSION:=1.2.4
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1-fullcone
{inputs,cell}:
{
/*
A function that split namespaces by a separator.
Example:
```nix
# src
{
packagesA_helper1 = ...;
packagesA_helper2 = ...;
{
a = implicit attrs; /*
implicit means it has to be accessed via `args.<implicit>`
Normally you can use `f = {implicit, ...}@args: implicit`,
but what if `f` is within the following function:
```nix
{implicit}: {
f = {implicit, ...}@args: implicit;
}
```

How about:

(defvar concatOnce
	(defthunk [x y] "${x} ${y}"))

(defvar joinAll
	(defthunk [list ?at ?delim]
		"${list[${
			if at == "" then 0 else at
 }]}${delim}${
@danielphan2003
danielphan2003 / getPlainWattpadStories.js
Created June 17, 2022 00:06
Get all Wattpad stories in your library, and output it as a single string (useful for automation).
await (async (username) => {
let all_stories = ""
const endpoints = {
"archive": 10,
"library": 25,
}
for (const endpoint in endpoints) {
const url = `https://www.wattpad.com/api/v3/users/${username}/${endpoint}`

HDSD trước khi dùng

Biên dịch chương trình

g++ main.cpp nhan_vien/nhan_vien.cpp nhan_vien/cong_nhat.cpp nhan_vien/quan_ly.cpp nhan_vien/san_xuat.cpp -o bai8

Chạy chương trình