Skip to content

Commit a36fbbb

Browse files
authored
init (#1)
* ganos
1 parent 1a22144 commit a36fbbb

File tree

12 files changed

+256
-1
lines changed

12 files changed

+256
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.x
17+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18+
- uses: actions/cache@v3
19+
with:
20+
key: mkdocs-material-${{ env.cache_id }}
21+
path: .cache
22+
restore-keys: |
23+
mkdocs-material-
24+
- run: pip install mkdocs-material mkdocs-glightbox
25+
- run: mkdocs gh-deploy --force

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
# code_snippets
1+
# Code Snippets
2+
3+
# Welcome to Code Snippets
4+
5+
## Commands
6+
7+
* `mkdocs new [dir-name]` - Create a new project.
8+
* `mkdocs serve` - Start the live-reloading docs server.
9+
* `mkdocs build` - Build the documentation site.
10+
* `mkdocs -h` - Print help message and exit.

docs/assets/favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/assets/logo.png

3.35 KB
Loading

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Welcome to Code Snippets

docs/python/geopandas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# GeoPandas

docs/python/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# python

docs/sql/ganos/ST_AsImage.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
comments: true
3+
---
4+
5+
# [ST_AsImage](https://help.aliyun.com/zh/polardb/polardb-for-postgresql/st-asimage?spm=a2c4g.11186623.help-menu-2249963.d_8_5_3_2.435d1dc7c8te2K)
6+
7+
将栅格对象转化为影像格式二进制流。
8+
9+
```sql
10+
SELECT
11+
encode(
12+
ST_AsImage (
13+
rast,
14+
'(140.025,60.025),(69.975,-0.025)' :: box
15+
0,
16+
'0',
17+
'jpeg',
18+
'{"strength": "ratio", "quality": 70}'
19+
),
20+
'hex'
21+
)
22+
FROM
23+
surf_hor_metadata
24+
WHERE
25+
ele = 'PRE'
26+
```

docs/sql/ganos/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# [时空引擎(GanosBase)](https://help.aliyun.com/zh/polardb/polardb-for-oracle/ganosbase-spatio-temporal-database/?spm=a2c4g.11186623.help-menu-2249963.d_9.6f7d7f1fFlqiaA)
2+
3+

docs/sql/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SQL

0 commit comments

Comments
 (0)