Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
hihihaha

soiqualang

🙃
hihihaha
View GitHub Profile
@soiqualang
soiqualang / dirname-filename-basename.bat
Created Mar 5, 2021 — forked from Ciantic/dirname-filename-basename.bat
How to get filename, dirname, and basename in bat?
View dirname-filename-basename.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 Jan 27, 2021 — 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.
View HTML Application.hta
<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
View netcdf2shape.MD

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
View sketch-underline-style.md

.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 Dec 23, 2020
[IONIC] Fix lỗi No Java files found that extend CordovaActivity
View Fix lỗi No Java files found that extend CordovaActivity.md

[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
View Notes MySQL.md

Notes MySQL

Video Hướng dẫn

  • [MySQL] Create Database, table

https://youtu.be/fkXIAzu6gec

  • [MySQL] Add PRIMARY KEY, FOREIGN KEY Constraint
View JavaScript decode base64.md
// 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);