Skip to content

Instantly share code, notes, and snippets.

View quangdaist01's full-sized avatar

Nguyễn Quang Đại quangdaist01

View GitHub Profile
@quangdaist01
quangdaist01 / easy_timesheet_for_fssers.user.js
Last active March 20, 2023 07:19
Easy Timesheet For FSSers
// ==UserScript==
// @name Easy Timesheet For FSSers
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Press ` to add -> Type descripton -> Press Ctrl + Enter to finish. No more tedious mouse movements.
// @author Dai.Nguyen.HCM
// @match https://ts.fss.com.vn/core/kimai.php
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// ==/UserScript==
  • Cơ chế dọn rác của python là gì? Tạo sao python không có delete pointer_a; giống c++
  • @property trong python là gì? Khi nào dùng nó?
  • Truyền 1 mutable object (list,...) vô hàm rùi thực hiện một số thay đổi (append, insert,...) lên object đó. Sau khi ra ngoài hàm, mutable object trên có bị thay đổi hay không?
  • Tại sao b, a = a, b lại không bị lỗi circular reference?
  • Shalow/deep copy là gì?
  • [1, 2].append(3)[1, 2] + [3] giống hay khác?
  • Nguyên lí hoạt động của for i in range(x)?
  • Iterable/Iterator là gì? Dataloader là 1 iterable hay iterator? Cách tự xây dựng 1 dataloader?
  • 2 built-in functions: iter(), next() có liên hệ gì với dataloader?