Skip to content

Instantly share code, notes, and snippets.

liudonghua liudonghua123

Block or report user

Report or block liudonghua123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
liudonghua123 / cloudSettings
Created Sep 5, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
liudonghua123 / subl.reg
Created Jun 1, 2019
add context menu of sublime text 3
View subl.reg
Windows Registry Editor Version 5.00
; show in context menu when right click all kinds files
@="Open with Sublime Text 3"
"Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0"
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
; show in context menu when right click empty area of explorer
liudonghua123 / simple-soap.js
Created May 31, 2019
A simple node app for soap operation demonstration
View simple-soap.js
const getCircularReplacer = () => {
const seen = new WeakSet();
return (key, value) => {
if (typeof value === "object" && value !== null) {
if (seen.has(value)) {
liudonghua123 /
Last active Jan 10, 2019
process xlsx with template
from openpyxl import Workbook, load_workbook
from openpyxl.styles.borders import Border, Side
import os
import re
def getData(filePath):
wb = load_workbook(filename=filePath)
sheet = wb.worksheets[0]
row_count = sheet.max_row
liudonghua123 /
Created Sep 14, 2018 — forked from mattrude/
Bind 9.11+ Update script for Ubuntu 16.04 LTS
BINDVER=`curl -slL |grep ".tar.gz$" |sed 's/bind-//g' |sed 's/.tar.gz//g'`
if [ -f /usr/local/sbin/named ]; then
CURRENTVER=`/usr/local/sbin/named -v |awk '{ print $2 }'`
elif [ -f /usr/sbin/named ]; then
CURRENTVER=`/usr/sbin/named -v |awk '{ print $2 }'`
liudonghua123 /
Created Sep 12, 2018 — forked from vrajroham/
Google Docs Viewer & Office Web Apps Viewer

Google Docs Viewer

Only files under 25 MB can be previewed with the Google Drive viewer.

Google Drive viewer helps you preview over 16 different file types, listed below:

  • Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
  • Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV)
  • Text files (.TXT)
  • Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS)
  • Microsoft Word (.DOC and .DOCX)
liudonghua123 /
Created Jun 29, 2018
convert image batch scripts
# if [ ! -d ${output_folder} ]
# then
# mkdir -p ${output_folder}
# fi
[ -d ${output_folder} ] || mkdir -p ${output_folder}
for filename in origin/*.jpg; do
echo convert -resize ${convert_percentage} $filename ${output_folder}/$(basename $filename)
liudonghua123 / gcc.bat
Created Jun 29, 2018
Some configuration files for c/c++ dev on wsl of vscode.
View gcc.bat
c:/windows/sysnative/bash.exe -c "gcc -g %1 -o %2"
liudonghua123 /
Last active Jun 21, 2018
Simple python implementation of LinkedList
# coding=utf-8
class LinkedList(object):
# define the node type
class Node:
def __init__(self, element, next):
self.element = element = next
liudonghua123 /
Created Jun 21, 2018
Simple Stack and Queue implementation
# coding=utf-8
class Stack(object):
def __init__(self): = []
def pop(self):
def push(self, element):
You can’t perform that action at this time.