Skip to content

Instantly share code, notes, and snippets.

@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.
MemTotal: 16375596 kB
MemFree: 12515232 kB
MemAvailable: 10788976 kB
Buffers: 65768 kB
Cached: 1671596 kB
SwapCached: 0 kB
Active: 2343932 kB
Inactive: 955088 kB
Active(anon): 1566884 kB
Inactive(anon): 98080 kB
@McSinyx
McSinyx / do-not-read-me.md
Last active April 26, 2019 13:52
ICT1.2: Labwork 6

After studying about pointers, labworks start to get interesting. So I decided to upload my solutions to compare with others. Hope some may find my implementations either helpful or amusing.

For exercise 4, please head to this commit. I felt that it was too long to be put together with 5-minute attempts.

Don't mind the file name tho, I put it that way so that the file will get alphabetically sorted before the labworks.

@McSinyx
McSinyx / Android.png
Last active February 28, 2019 14:02
[EN2.1] Free Software Movement: Reclaim Your Control
Android.png
@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 / vi-char.md
Last active November 22, 2018 14:40
Một vài đặc điểm loại hình tiếng Việt

Một vài đặc điểm loại hình tiếng Việt

Phương thức hư từ

Các ý nghĩa ngữ pháp, mà đặc biệt là các mối quan hệ ngữ pháp giữa các từ, có thể được thể hiện bằng các hư từ. Đó chính là phương thức hư từ:

Tôi đang ăn cơm.

Tuy nhiên trong các ngôn ngữ biến hình (như tiếng Anh), hư từ có thể được sử

@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 / 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"
[{"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

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.