Skip to content

Instantly share code, notes, and snippets.

View jmaxhu's full-sized avatar

James Maxwell jmaxhu

View GitHub Profile
@jmaxhu
jmaxhu / .env
Last active November 14, 2024 00:40
add dify support to realchar
# dify config
DIFY_API_KEY=
DIFY_BASE_URL=
@jmaxhu
jmaxhu / simple_idw.ipynb
Created January 13, 2023 06:30 — forked from Majramos/simple_idw.ipynb
Simple inverse distance weighted (IDW) interpolation with python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmaxhu
jmaxhu / mysql-docker.sh
Created March 3, 2020 13:40 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE

--
-- 表的结构 `area`
--
DROP TABLE IF EXISTS `area`;
CREATE TABLE IF NOT EXISTS `area` (
`id` int(11) NOT NULL auto_increment,
`areaID` int(11) NOT NULL,
`area` varchar(20) character set gbk NOT NULL,
@jmaxhu
jmaxhu / default.custom.yaml
Created January 4, 2019 07:08 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
@jmaxhu
jmaxhu / lib.md
Last active April 5, 2016 00:46
框架和库
@jmaxhu
jmaxhu / .git-commit-template.txt
Last active August 21, 2023 06:29 — forked from adeekshith/.git-commit-template.txt
一份建议的git commit模板
# <类型>: (类型的值见下面描述) <主题> (最多50个字)
# 解释为什么要做这些改动
# |<---- 请限制每行最多72个字 ---->|
# 提供相关文章和其它资源的链接和关键字
# 例如: Github issue #23
# --- 提交 结束 ---
# 类型值包含
@jmaxhu
jmaxhu / datetime.cpp
Last active March 4, 2016 16:02
输入一个日期时间字符串,在控制台根据该时间动态显示时间,并显示是否是闰年,如果整点进行提醒
#include <iostream>
#include <cstdlib>
#include <cstdio>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif //win32
using namespace std;