Skip to content

Instantly share code, notes, and snippets.

View Hanlin-Dong's full-sized avatar
😏

Hanlin Dong Hanlin-Dong

😏
View GitHub Profile
@Hanlin-Dong
Hanlin-Dong / NavBar-v1.0.2.POWERPOINT.yaml
Created September 7, 2023 16:20
Create navigation bar and progress bars in PowerPoint!
name: NavBar-v1.0.2
description: Create navigation bar and progress bars in PowerPoint!
host: POWERPOINT
api_set: {}
script:
content: |
const { createApp } = Vue;
createApp({
data() {
@Hanlin-Dong
Hanlin-Dong / NavBar (1).POWERPOINT.yaml
Created September 7, 2023 16:20
Performs a basic PowerPoint API call using JavaScript
name: NavBar (1)
description: Performs a basic PowerPoint API call using JavaScript
host: POWERPOINT
api_set: {}
script:
content: |
const { createApp } = Vue;
createApp({
data() {
@Hanlin-Dong
Hanlin-Dong / Test my navbar.POWERPOINT.yaml
Created December 15, 2022 02:45
Create a new snippet from a blank template.
name: Test my navbar
description: Create a new snippet from a blank template.
host: POWERPOINT
api_set: {}
script:
content: |
$("#run").click(() => {
createNavbarEqualHorizontalSpacing().then(res => console.log(res)).catch(reason => {
console.log(reason);;
})
@Hanlin-Dong
Hanlin-Dong / video-capture.py
Created July 20, 2021 13:04
Capture a video into image every N seconds
import cv2
from os import mkdir
def capture(name, interval):
"""Capture a video into a series of pictures
Args:
name (str): The file name of the video
interval (float): The time interval to split the video, in seconds.
@Hanlin-Dong
Hanlin-Dong / pyearthquake.py
Created April 9, 2020 20:56
pyearthquake.py
#!/usr/bin/env python
'''
Introduction
============
`pyearthquake` is a light-weight module with basic earthquake engineering utilities.
The aim of this module is to help engineers play with earthquakes by python programming.
*Features*
--------
@Hanlin-Dong
Hanlin-Dong / SmartAnalyze.tcl
Last active June 12, 2020 02:19
SmartAnalyze.tcl
#####
# File: SmartAnalyze.tcl
# Author: Hanlin Dong
# Create: 2019-06-28 10:42:19
# Version: 4.0.2 alpha
# Last update: 2020-06-11 19:58:00
# License: MIT License (https://opensource.org/licenses/MIT)
# (The latest version can be found on http://www.hanlindong.com/)
# Readme:
# Introduction