Skip to content

Instantly share code, notes, and snippets.

View Alan-Liang's full-sized avatar

Alan L Alan-Liang

View GitHub Profile
APP_NAME = ***
RUN_USER = git
RUN_MODE = prod
[security]
INTERNAL_TOKEN = ***
INSTALL_LOCK = true
SECRET_KEY = ***
[database]
大于14比例 0.6744
小于-19比例 1
无穿越比例 0.0924
平均最大 25139.9954
平均最小 -20667.7789
平均最大穿越 4983.632
@Alan-Liang
Alan-Liang / gist:491bd0561481e6fdb2b981cb932fad5d
Last active May 11, 2021 13:15
An example of some strange language named Pipette and their equivalencies in JavaScript.
// TODO: this is obsolete
'use strict'
require('@pipette/polyfill')
;(async function() {
const start = 0 // const start = 0
const count = _pt_channel(start) // let count = start
const plus = async function() { // fun plus() {
_pt_in1 = await count() // count |{
@Alan-Liang
Alan-Liang / README.md
Last active June 1, 2018 02:29
Some strange integration between Telegram, Huginn and Wechat for Work

How to use

  1. create a bot.
  2. create an Webhook agent and add it to your bot.
  3. paste the code into a Javascript agent and recieve fron webhook.
  4. create two agents - one for sending messages to Telegram, another for Wechat.
  5. Link those stuffs and play with them,
@Alan-Liang
Alan-Liang / .htaccess
Last active June 19, 2018 01:41 — forked from fffonion/.htaccess
Google镜像 恢复背景图片,代理谷歌快照,去除了url跳转,关闭安全搜索 http://g.yooooo.ushttp://gc.yooooo.us
#Redirect 301 ^/$ /search.htm
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !^/index\.htm
#RewriteCond %{REQUEST_URI} !^/image\.htm
#RewriteCond %{REQUEST_URI} !^/m\.htm
#RewriteCond %{REQUEST_URI} !^/mi\.htm
@Alan-Liang
Alan-Liang / log.js
Last active April 27, 2018 22:35
npmlog wrapper
/*
*log.js
*@author Alan-Liang
*@description npmlog wrapper
*@license WTFPL
*/
/*
@example
var log=require("./log")("example-logger");
@Alan-Liang
Alan-Liang / pjax.js
Last active July 5, 2017 09:10
A simple pjax library without jquery
/*
pjax library for personal use
@author Alan?Liang
*/
var pjax={};
pjax.pagecount=0;
pjax.pages=[];
/*
class pjax.page(string title,string url,function callback)