Skip to content

Instantly share code, notes, and snippets.

USE [AdventureWorksLT]
GO
/****** Object: Table [ProductModel] Script Date: 8/3/2021 10:04:22 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [ProductModel](
[ProductModelID] [int] IDENTITY(1,1) NOT NULL,
[Name] [dbo].[Name] NOT NULL,
{{range .Types}}
{{css2ls .Nm | cls2uc}} AppMessageType = {{.Vl}} // {{end}}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
** Emacs Traditional Precise Scrolling **
1 Lorem ipsum dolor si
2 t amet, consectetur
3 adipiscing elit. In
4 tempor eu ipsum sed
5 tincidunt. Integer a
6 t est a turpis vehic
7 ula rutrum. Etiam al
8 iquet, arcu sed conv
9 allis pellentesque,
{"coolHumans":[
{
"firstName":"Corey",
"lastName":"Woods",
"alias" : "Raekwon",
"joined": {
"month":"January",
"day":12,
"year":2012
}
@suntong
suntong / Emacs-Keymaps.md
Last active June 20, 2021 16:03
For the "Settling the key bindings war" blog
Shortcut MS Code IntelliJ
C-' editor.action.triggerSuggest -
C-' toggleSuggestionDetails -
C-/ undo $Undo
C-; editor.action.commentLine -
C-CLOSE_BRACKET - EditorCodeBlockEnd
C-F10 - ToggleBookmark
C-F4 - CloseContent
C-HOME - EditorTextStart
package main
import (
"fmt"
"github.com/eatMoreApple/openwechat"
)
func main() {
bot := openwechat.DefaultBot(openwechat.Desktop)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@suntong
suntong / Unknown-msg.md
Created April 24, 2021 15:10
Unknown: <msg>
<msg>
<op id='2'>
<username>wxid_eovu...ud22</username>
</op>
</msg>
@suntong
suntong / newGoAPI.sh
Created April 17, 2021 16:35 — forked from buildingwatsize/newGoAPI.sh
[v0.1.0] Golang + Fiber Boilerplate with a single command `./newGoAPI.sh` | Note: maybe you have to run `chmod a+x newGoAPI.sh` first
#!/bin/sh
echo "=================================="
echo "Welcome to Golang + Fiber Project Creator v0.1.0"
echo "=================================="
echo "For this script, The user have to input the project name (this will use to be the go module name and the project name."
echo ""
read -n 1 -s -r -p "Press any key to continue"
echo "\n"