Skip to content

Instantly share code, notes, and snippets.

View nhatminhbui's full-sized avatar
🤤
Chaos

Nhat Bui nhatminhbui

🤤
Chaos
View GitHub Profile
javascript:
var description = 'Instagram Photo & Stories Download';
var copyright = 'Nhat Bui (nhatminhbui.github.io)';
function getImgURL() {
x = window.innerWidth*3/7;
y = window.innerHeight/2;
img = document.elementsFromPoint(x, y);
while (typeof img == 'undefined') {
}
return img[1].src;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
struct course {
char code[10];
int credit;
char name[50];
struct course *next;
// Bùi Minh Nhật | 201A290002 | Tối thứ 5
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int SumEven(int**, int, int);
bool IsPrime(int);
#include <stdio.h>
const float pi = 3.14;
void ToChar(int); // 6a
void GetOrder(char); // 6b
void AreaVolumnGlob(float); // 7
void Power(int); // 8
void HourMinSec(unsigned int); // 9
void SumAllDigit(unsigned int); //10
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
char Lowercase(char c) {
// A to Z only
char uppercase = (int)c;
if (uppercase >= 65 && uppercase <= 90) uppercase += 32;
return uppercase; //printf("%c")
}
// Online C compiler to run C program online
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
struct node {
int info;
struct node* left;
struct node* right;
};
#include <stdio.h>
void PrintASCII() {
for(int i = 0; i < 256; ++i){
printf("%d %c\n", i, i);
}
}
int SumOdd(int n) {
// 1 3 5 7... 2n+1
-- 1
SELECT mamh, tenmh, tclt, tcth
FROM Khoa JOIN Monhoc
ON (Khoa.makhoa = Monhoc.makhoa)
WHERE tenkhoa = N'Ngoại ngữ';
-- 2
SELECT *
FROM Monhoc
WHERE tclt > tcth;
import sys, time
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtCore import QRunnable, QThreadPool
from gui import Ui_MainWindow
from firebase import Firebase
class MainWindow(QMainWindow):
def __init__(self, led, humi, temp):
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state