- Java 11
- Maven
- Redis
- PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ | |
// | | \\\ - /// | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/ | |
# author: lisez <[email protected]> | |
name: Auto publish to public site | |
# 只有推送到 master 才自動化 | |
on: | |
push: | |
branches: | |
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// gets hotjar user id (hjUID) | |
var hjUID = ""; | |
try { | |
if (typeof (hj) != "undefined" && hj.hasOwnProperty("globals")) { | |
// sample: a21c0a02-3b48-53c6-94b4-5604e281e5d8 | |
// the value before the first "-" ("a21c0a02") is the user identifier that can be referenced in the hj interface | |
// use the following snippet to return only the user identifier (eg// "a21c0a02"): | |
// hjUID =hj.globals.get("userId").split("-").shift(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
- publish | |
.build: &build_template | |
stage: build | |
image: microsoft/dotnet:2.1-sdk-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
paths: |
-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: cc-by-nc-4.0 | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign work_items = site.work_items | sort: 'date' | reverse %} | |
{% for work_item in work_items limit:4 %} | |
<div> | |
<a href="{{ work_item.url | prepend: site.baseurl }}">{{ work_item.title }}</a> | |
</div> | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A basic implementation of a pretty-printer or syntax highlighter for C# soure code. | |
/// </summary> | |
public class SourceColorer | |
{ | |
private string _commentCssClass; | |
private string _keywordCssClass; | |
private string _quotesCssClass; | |
private string _typeCssClass; | |
private bool _addStyleDefinition; |