Skip to content

Instantly share code, notes, and snippets.

suntong

Block or report user

Report or block suntong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View starter-padplus-bot.js
#! /usr/bin/env node
const {
Wechaty,
config,
} = require('wechaty')
const { Message } = require('wechaty')
const { MessageType } = require('wechaty-puppet')
const { PuppetPadplus } = require('wechaty-puppet-padplus')
View goptions_demo.go
package main
import (
"fmt"
"os"
"time"
)
import (
"github.com/voxelbrain/goptions"
View yahoo-finance-chart.json
{
"interval": "day",
"periodicity": 1,
"timeUnit": null,
"candleWidth": 8,
"volumeUnderlay": true,
"adj": true,
"crosshair": true,
"chartType": "candle",
"extended": false,
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View simpleUsage.js
const Slimbot = require('slimbot');
const slimbot = new Slimbot(process.env['TELEGRAM_BOT_TOKEN']);
// Register listeners
slimbot.on('message', message => {
// reply when user sends a message
slimbot.sendMessage(message.chat.id, 'Message received');
});
slimbot.on('edited_message', edited_message => {
View LiteIDE Tips.md

Install LiteIDE

  • Download http://sourceforge.net/projects/liteide/files
  • Unzip to a directory of your choice and make a shortcut to ./liteide/bin/liteide.exe
  • Recommended to add ./liteide/bin to your PATH
  • Recommended settings in View | Options:
    • LiteApp
      • Display
        • Toolbar Icon Size: 18x18
    • LiteEditor
View SQL loop with wait, to check tempdb size.sql
SELECT instance_name AS 'Database',
[Data File(s) Size (KB)]/1024 AS [Data file (MB)],
[Log File(s) Size (KB)]/1024 AS [Log file (MB)],
[Log File(s) Used Size (KB)]/1024 AS [Log file space used (MB)]
FROM (SELECT * FROM sys.dm_os_performance_counters
WHERE counter_name IN
('Data File(s) Size (KB)',
'Log File(s) Size (KB)',
'Log File(s) Used Size (KB)')
AND instance_name = 'tempdb') AS A
View mpv.conf
slang=eng
sub-scale=0.8
sub-delay=0.5
View fbxdgmenu.py
#!/usr/bin/env python3
from __future__ import print_function
from xdg import Menu, IconTheme
import sys
import re
STANDALONE=False
TERMINAL_COMMAND = "konsole -e %s"
You can’t perform that action at this time.