Skip to content

Instantly share code, notes, and snippets.

View trkhanh's full-sized avatar

Tran Khanh trkhanh

View GitHub Profile
@trkhanh
trkhanh / thread.html
Last active December 16, 2020 03:04
thread.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
@trkhanh
trkhanh / react-clock.js
Created November 11, 2020 13:12
clock.js
import React, { Component } from "react";
class ClockWatcher extends Component {
canvas = "";
ctx = "";
radius = "";
constructor(props) {
super(props);
this.state = { date: new Date(),
@trkhanh
trkhanh / index.md
Created July 9, 2020 10:25 — forked from iamakulov/index.md
Webpack’s ContextReplacementPlugin examples
@trkhanh
trkhanh / reader.js
Created June 24, 2020 01:59
the JS reader text to speak
"use strict";
// Application variables
var area, txt;
var fontsize = 18;
var s = { INIT: 1, PLAY: 2, PAUSED: 3, END: 4 };
var iplay, previplay, playstate = s.INIT;
var start, end;
var msg = null;
var imsg;
var voices = [];
var build = [];
var anwPool = [];
var _RANDOM_QUESTION_EXTEND_ = 2;
var QUES_COL = 2
var ANS_COL = 0
var EX_COL = 1
function random_sort(a, b) {
return 0.5 - Math.random();
}
@trkhanh
trkhanh / khoasuabai.cs
Last active May 17, 2020 04:52
KhoaSuaBai
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.IO;
using System.Text;
using System.Threading.Tasks;
@trkhanh
trkhanh / todos.cs
Last active April 26, 2020 05:14
TodoC#
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
@trkhanh
trkhanh / remotework.md
Last active April 26, 2020 08:06
Từ xa, không cần văn phòng

Từ xa, không cần văn phòng

Thời gian phù hợp cho công việc từ xa

Tại sao công việc không xảy ra tại nơi làm việc

Văn phòng vào ban ngày đã trở thành nơi cuối cùng mọi người muốn đến thực sự muốn hoàn thành công việc

Các văn phòng đã trở thành các nhà máy bị gián đoạn: đó chỉ là một gián đoạn sau

@trkhanh
trkhanh / gist:8649507abd37fd353ec7ad7ac19b2a2a
Created March 22, 2020 09:34
Remote, Office Not Required
# Remote, Office Not Required
## The Time is Right for Remote Work
### Why work doesn't happen at work
The office during the day has become the last place people want to be when then
really want to get work done.
Offices have become interruption factories: it's just one interruption after