Skip to content

Instantly share code, notes, and snippets.

@McSinyx
McSinyx / đcôthkIImth11.md
Created April 14, 2017 14:00
Đề cương ôn tập học kì II môn tin học lớp 11

I. Lí thuyết

Câu 1

Tệp được phân loại theo cách tổ chức dữ liệu vì mỗi loại dữ liệu (văn bản, hình ảnh, âm thanh, ...) cần được đọc, ghi, xử lí khác nhau mới nhanh và sử dụng tài nguyên máy hiệu quả nhất.

Câu 2

nhtravel

NH airline mới mở N chặng bay mới kết nối N+1 địa điểm du lịch với nhau, sao cho giữa 2 địa điểm bất kỳ luôn có một đường bay, các địa điểm du lịch được đánh số từ 1 đến N+1. Do được giải nhất kỳ thi tin học Quốc gia năm ngoái, Tèo đã được tặng một vé vip miễn phí trên toàn bộ N chặng bay này. Tèo đang lên lịch trình du lịch để tham quan hết tất cả các địa điểm. Trong lúc lập lịch, Tèo sẽ phải tính xem, liệu có nên đi từ địa điểm A đến địa điểm B không, nếu có thì phải bay mấy chặng bay. Em hãy giúp Tèo để cậu sớm có thể đi du lịch.

[{"s":0,"m":["000000000000000vvvv000000","000000000000000vvvv000000","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvvvvvvvvvvv000vvv","0000000000000000000000000","0000000000000000000000000","0000000000000000000000000"],"h":["v",1250,950,225,1,1],"t":34},{"s":0,"m":["000000000000000vvvv000000","000000000000000vvvv000000","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","vvvvvvvvv000vvvvvvv000vvv","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","00000vvvv000000vvvv000000","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvvvvvvvvvvv000vvv","vvvvvvvvvv
@McSinyx
McSinyx / gnome-desktop3.po
Created August 21, 2018 03:38
GNOME topbar clock in more standard format
msgid ""
msgstr ""
"Project-Id-Version: gnome-desktop\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-03-31 19:28+0100\n"
"PO-Revision-Date: 2012-03-31 19:30+0100\n"
"Last-Translator: Matthias Clasen <mclasen@redhat.com>\n"
"Language-Team: English <en@li.org>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
@McSinyx
McSinyx / chroot-mnt.sh
Last active September 15, 2019 07:41
Change root
mount /dev/nvme0n1p3 /mnt
mount /dev/nvme0n1p4 /mnt/home
mount /dev/nvme0n1p1 /mnt/boot/efi
mount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/dev
chroot /mnt /bin/bash
umount -l /mnt/dev{/shm,/pts,}
@McSinyx
McSinyx / cursived.pdf
Last active June 16, 2019 07:31
Homework d'coocoolut
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@McSinyx
McSinyx / foobar.md
Created November 21, 2018 04:55
foobar4

Ex1

Input:

  • Positive integer n
  • An array a of floats indexed from 1 to n

Output: a float min as minimal value of a

float min;

int index;

@McSinyx
McSinyx / cons-sequences.md
Last active September 21, 2019 14:01
Infinite Sequences: A Case Study in Functional Python

Infinite Sequences: A Case Study in Functional Python

In this article, we will only consider sequences defined by a function whose domain is a subset of the set of all integers. Such sequences will be visualized, i.e. we will try to evaluate the first few (thousand) elements, using functional programming paradigm, where functions are more similar to the ones in math (in contrast to imperative style with side effects confusing to inexperenced coders). The idea is taken from subsection 3.5.2 of SICP and adapted to Python, which, compare to Scheme, is significantly more popular:

@McSinyx
McSinyx / cube.frag
Last active February 3, 2019 14:42
My first cubes
#version 330
uniform vec3 color;
in float alpha;
out vec4 f_color;
void main() {
f_color = vec4(color, alpha);
}
@McSinyx
McSinyx / Android.png
Last active February 28, 2019 14:02
[EN2.1] Free Software Movement: Reclaim Your Control
Android.png