Skip to content

Instantly share code, notes, and snippets.

View thanhniencung's full-sized avatar
🏠
Working from home

Nguyễn Văn Kiên thanhniencung

🏠
Working from home
View GitHub Profile
import { Chart as ChartJS, registerables } from 'chart.js';
import { Bar } from 'react-chartjs-2';
ChartJS.register(...registerables);
interface BarLineChartCAPProps {
numberDayFilter: number;
}
##### Stage 1 #####
### Use golang:1.19 as base image for building the application
FROM golang:1.19-alpine as builder
### Create new directly and set it as working directory
RUN mkdir -p /project
WORKDIR /project
# Install revel framework
@thanhniencung
thanhniencung / infinite_scrolling.dart
Created July 31, 2022 07:52 — forked from Roaa94/infinite_scrolling.dart
Infinite Scrolling with Riverpod
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:dio/dio.dart';
// Disclaimer: This uses the "The Movie Database API (TMDB)"
// https://developers.themoviedb.org/3/getting-started
// With this endpoint:
// https://developers.themoviedb.org/3/people/get-popular-people
/// The FutureProvider that does the fetching of the paginated list of people
/*
* CKEditor 5 (v30.0.0) content styles.
* Generated on Tue, 05 Oct 2021 09:17:38 GMT.
* For more information, check out https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/content-styles.html
*/
:root {
--ck-color-image-caption-background: hsl(0, 0%, 97%);
--ck-color-image-caption-text: hsl(0, 0%, 20%);
--ck-color-mention-background: hsla(341, 100%, 30%, 0.1);
package main
import (
"context"
"crypto/tls"
"fmt"
"os/exec"
"os/signal"
"strconv"
"strings"
<template>
<div class="map-container" style="width: 100%; height: 100%">
<div id="map" style="position: absolute; top: 0px; left: 0px">
<v-alert
v-if="chuVi != 0 && dienTich != 0"
type="success"
style="z-index: 10000"
width="300px"
class="mt-4 ml-4"
>
import 'package:flutter/material.dart';
import 'dart:convert' as convert;
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thanhniencung
thanhniencung / rfc3339.js
Created May 1, 2020 10:46 — forked from pjdietz/rfc3339.js
Format a local date as an RFC 3339 date with timezone
function rfc3339(d) {
function pad(n) {
return n < 10 ? "0" + n : n;
}
function timezoneOffset(offset) {
var sign;
if (offset === 0) {
return "Z";
<template>
<div id="customers">
<md-table
style="width: 100%"
md-height="700px"
v-model="searched"
md-sort="name"
md-sort-order="asc"
md-fixed-header
>