Skip to content

Instantly share code, notes, and snippets.

View soiqualang's full-sized avatar
🙃
hihihaha

Đỗ Thành Long soiqualang

🙃
hihihaha
View GitHub Profile
@soiqualang
soiqualang / dirname-filename-basename.bat
Created March 5, 2021 08:04 — forked from Ciantic/dirname-filename-basename.bat
How to get filename, dirname, and basename in bat?
set filepath="C:\some path\having spaces.txt"
for /F "delims=" %%i in (%filepath%) do set dirname="%%~dpi"
for /F "delims=" %%i in (%filepath%) do set filename="%%~nxi"
for /F "delims=" %%i in (%filepath%) do set basename="%%~ni"
echo %dirname%
echo %filename%
echo %basename%
@soiqualang
soiqualang / HTML Application.hta
Created January 27, 2021 07:40 — forked from drewchapin/HTML Application.hta
Template for an HTML Application file (.hta), add to C:\Windows\ShellNew, and add ShellNew\Filename="HTML Application.hta" to .hta HKCR key.
<html>
<head>
<!--
@tag hta:application
@attribute ApplicationName Sets the name of the HTA.
@attribute Border [Thick]|Thin|None
@attribute BorderStyle [Normal]|Raised|Sunken|Complex|Static
@attribute Caption [Yes]|No
@soiqualang
soiqualang / netcdf2shape.MD
Created January 13, 2021 07:23
netcdf to shape

netcdf to shape

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from netCDF4 import Dataset
from osgeo import ogr,osr
from shapely import geometry
import os
@soiqualang
soiqualang / sketch-underline-style.md
Last active December 29, 2020 07:07
sketch-underline style

.sketch-underline

.sketch-underline {
    # background: url(https://www.monicahq.com/img/sketch_underline.svg) 0 100% no-repeat;
    background: url(https://raw.githubusercontent.com/gist/soiqualang/f90714627f4ad186c47a974720fafb3c/raw/17f56b29fef699eee952959aeb9f57554aba762d/sketch_underline.svg) 0 100% no-repeat;
    background-size: 100% .75rem;
    padding-bottom: .6rem;
}
@soiqualang
soiqualang / Fix lỗi No Java files found that extend CordovaActivity.md
Last active December 23, 2020 03:09
[IONIC] Fix lỗi No Java files found that extend CordovaActivity

[IONIC] Fix lỗi No Java files found that extend CordovaActivity

Thông tin lỗi

image

Cách sửa

# Xóa, thêm lại android mới nhất
@soiqualang
soiqualang / Notes MySQL.md
Last active December 21, 2020 10:11
Notes MySQL

Notes MySQL

Video Hướng dẫn

  • [MySQL] Create Database, table

https://youtu.be/fkXIAzu6gec

  • [MySQL] Add PRIMARY KEY, FOREIGN KEY Constraint
@soiqualang
soiqualang / JavaScript decode base64.md
Created December 14, 2020 09:30
JavaScript decode base64
// Define the string
var string = 'Hello World!';

// Encode the String
var encodedString = btoa(string);
console.log(encodedString); // Outputs: "SGVsbG8gV29ybGQh"

// Decode the String
var decodedString = atob(encodedString);