Skip to content

Instantly share code, notes, and snippets.

@lam-nv
lam-nv / azure-pipelines.yml
Created July 1, 2023 15:23 — forked from dlmelendez/azure-pipelines.yml
Firebase Hosting Azure Pipeline Deploy
trigger:
- firebase-demo
pool:
vmImage: 'windows-2019'
steps:
- task: NodeTool@0
@lam-nv
lam-nv / sample.sh
Created October 13, 2022 15:48 — forked from e7d/sample.sh
Bash "try catch"
#!/bin/bash
export AnException=100
export AnotherException=101
# start with a try
try
( # open a subshell !!!
echo "do something"
[ someErrorCondition ] && throw $AnException
@lam-nv
lam-nv / hello_world.dart
Created September 14, 2021 20:15
Hello World with Flutter
import "package:flutter/material.dart";
void main() {
runApp(
const Center(
child: Text(
"Hello World!!!",
textDirection: TextDirection.ltr,
),
12345678
123456789
88888888
99999999
1234567890
999999999
11111111
khongbiet
hoilamgi
66668888
void main() {
print(num.parse('-55554*'.replaceAll(new RegExp(r'[^0-9]+'), '')));
}
@lam-nv
lam-nv / rename_js_files.sh
Created May 17, 2019 12:12 — forked from afternoon/rename_js_files.sh
Rename .js files to .ts
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
@lam-nv
lam-nv / gulpfile.js
Created November 18, 2018 22:24 — forked from xzyfer/gulpfile.js
True incremental sass compilation
var production = process.env.APP_ENV === "test";
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-sass');
var cssmin = require('gulp-minify-css');
var prefix = require('gulp-autoprefixer');
var newer = require('gulp-newer');
var print = require('gulp-print');
var notify = require('gulp-notify');
var batch = require('gulp-batch');