Skip to content

Instantly share code, notes, and snippets.

View tranphuquy19's full-sized avatar
🐢
Doraneko

Doraneko tranphuquy19

🐢
Doraneko
  • Vietnam
View GitHub Profile
@tranphuquy19
tranphuquy19 / main.c
Last active May 5, 2019 19:42
THỰC HÀNH VI ĐIỀU KHIỂN STM32L1XX (LAB1, LAB5) [LED BLINK BUTTON, LED DELAY)
//CHÚ Ý: CODE CHUẨN NẰM Ở DÒNG 334, LAB1: pg.335, LAB5 v.1 pg.388, LAB5 v.2 pg.498, LAB6 pg.581
////******************** (C) Yifeng ZHU ********************
//// @file main.c
//// @author Yifeng Zhu
//// @version V1.0.0
//// @date November-11-2012
//// @note
//// @brief C code for STM32L1xx Discovery Kit
//// @note
//// This code is for the book "Embedded Systems with ARM Cortex-M3
@tranphuquy19
tranphuquy19 / dengiaothong.asm
Last active June 2, 2019 18:46
Giải đề thi cuối kì, lập trình vi điều khiển stm32l1xx
INCLUDE stm32l1xx_constants.s ; Load Constant Definitions
INCLUDE stm32l1xx_tim_constants.s ; TIM Constants
AREA main, CODE, READONLY
EXPORT __main ; make __main visible to linker
ENTRY
__main PROC
;enable the clock port A
BL GPIOA_CLOCK_Enable
@tranphuquy19
tranphuquy19 / 74HC595_8Led_Cùng_Lúc.cpp
Last active November 12, 2019 04:36
Lap lập trình nhúng
/*
shiftOut với 8 LED bằng 1 IC HC595
*/
//chân ST_CP của 74HC595
int latchPin = 8;
//chân SH_CP của 74HC595
int clockPin = 12;
//Chân DS của 74HC595
int dataPin = 11;
@tranphuquy19
tranphuquy19 / GET_Request.cpp
Created January 21, 2020 16:04
Note NodeMCU
if (WiFi.status() == WL_CONNECTED)
{
HTTPClient http;
http.begin(mcuEndpoint);
int httpStatusCode = http.GET();
if (httpStatusCode > 0)
{
String payload = http.getString();
int result = payload.toInt();
@tranphuquy19
tranphuquy19 / Docker_CLI_commands.md
Last active February 9, 2020 16:22
Docker Notes
#!/bin/bash
git init trym
cd trym
touch README.md
git add README.md
GIT_AUTHOR_DATE=2020-01-06T12:00:00 GIT_COMMITER_DATE=2020-01-06T12:00:00 git commit --allow-empty -m "Rewriting History!" > /dev/null
GIT_AUTHOR_DATE=2020-01-06T12:00:00 GIT_COMMITER_DATE=2020-01-06T12:00:00 git commit --allow-empty -m "Rewriting History!" > /dev/null
GIT_AUTHOR_DATE=2020-01-06T12:00:00 GIT_COMMITER_DATE=2020-01-06T12:00:00 git commit --allow-empty -m "Rewriting History!" > /dev/null
GIT_AUTHOR_DATE=2020-01-06T12:00:00 GIT_COMMITER_DATE=2020-01-06T12:00:00 git commit --allow-empty -m "Rewriting History!" > /dev/null
GIT_AUTHOR_DATE=2020-01-13T12:00:00 GIT_COMMITER_DATE=2020-01-13T12:00:00 git commit --allow-empty -m "Rewriting History!" > /dev/null

Hướng dẫn download Courses trên Pluralsight (tháng 4)

  • Các bạn có thể gửi Course đã tải cho mình tại địa chỉ Email: tranphuquy19@gmail.com để mình có thể chia sẻ cho các thành viên khác. Thanks all!

1. Đăng kí account Pluralsight free

2. Cài youtube-dl:

* Đối với Window:

@tranphuquy19
tranphuquy19 / app.js
Last active May 9, 2020 17:04
Hướng dẫn sử dụng Socket.io với Express-generator
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var apiRouter = require('./routes/api');
// Mạch full adder 1 bit
module halfadd(a, b, sum, carry);
input a, b;
output sum, carry;
assign sum = a ^ b;
assign carry = a & b;
endmodule
module fulladd(Ain, Bin, Cin, SumOut, CarryOut);
@tranphuquy19
tranphuquy19 / Text.txt
Created July 20, 2020 17:32
Warp+ 2020
E3f17ca2-547BVwD3-31myrV42
6c2zB8F9-2Q4r1W3A-vCS47I18
3J1G0p9X-XAha8705-L076KFw8
4EuYF381-k2MY8t09-65O9CEj4
83e06DJd-CO4i92T3-14b8rXM6