Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯

听寒 inkedawn

🎯
View GitHub Profile
@inkedawn
inkedawn / helper.js
Last active Mar 11, 2020
剑心闯江湖活动小游戏提交分数
View helper.js
// 活动网址:https://w.pvp.xoyo.com:60084/
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
var CryptoJS=CryptoJS||function(a,b){var m,c={},d=c.lib={},e=function(){},f=d.Base={extend:function(a){e.prototype=this;var b=new e;return a&&b.mixIn(a),b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},g=d.WordArray=f.extend({init:function(a,c){a=this.words=a||[],this.sigBytes=c!=b?c:4*a.length},toString:function(a){return(a||i).stringify(this)},concat:function(a){var e,b=this.words,c=a.words,d=this.sigBytes;if(a=a.sigBytes,this.clamp(),d%4)for(e=0;a>e;e++)b[d+e>>>2]|=(255&c[e>>>2]>>>24-8*(e%
@inkedawn
inkedawn / jisuanke.user.js
Last active Dec 9, 2019
计蒜客助手
View jisuanke.user.js
// ==UserScript==
// @name 计蒜客助手
// @namespace http://tampermonkey.net/
// @homepage https://gist.github.com/inkedawn/12b82ba385666853a00c3725d6c04d27
// @version 0.2.0
// @description [计蒜客]
// @description [jisuanke]
// @author inkedawn
// @license MIT
// @date 22/01/2019
View TaomeeDLLUnpack.go
package main
import (
"fmt"
"os"
"strconv"
)
// args
var (
@inkedawn
inkedawn / calc.html
Created Jan 13, 2019
剑网3 会心/伤害(治疗)秘籍收益计算
View calc.html
<!DOCTYPE html>
<html>
<head>
<title>会心/伤害(治疗)秘籍收益计算</title>
</head>
<body>
<label for="criticalEffect">输入会效(%):</label>
<input type="text" placeholder="如175" id="criticalEffect" value="175">
<p>秘籍收益(从大到小排序):</p>
<div id="result">
View main.go
package main
import (
"fmt"
"strings"
"errors"
"net/http"
"net/url"
"encoding/json"
"os"
@inkedawn
inkedawn / expr.cpp
Last active Oct 7, 2018
简单的表达式解析与运算求值(支持整数/浮点运算、有优先级的二元运算(加减乘除))
View expr.cpp
#include <string>
#include <memory>
#include <cassert>
class Expr{
public:
virtual double evaluate() = 0;
virtual std::string toString() = 0;
virtual std::string toRPN() = 0; // 逆波兰表示法
class Op {
View genesis_public_key
04480894e8133a0dbedd0bfa20b4f610cd9249ba779d0a81f0e6ecbf8e64dd4b42f3aac18156afa5bd20aa931cb56680e7656b2400aa7a54ba283e41fbc8d3613d mickeyandkaka
@inkedawn
inkedawn / RegexpWritingTester.cpp
Last active Feb 23, 2018
测试书写的正则表达式。通过预先设定好测试用例,来测试书写的正则表达式是否符合预期要求。
View RegexpWritingTester.cpp
// RegexpWritingTester.cpp: 定义控制台应用程序的入口点。
// 测试用例输入格式:
// 匹配数据
// 是否应该匹配(1/0)
#include <iostream>
#include <regex>
#include <string>
#include <cstdlib>
#include <vector>
@inkedawn
inkedawn / gitstars.json
Last active Feb 14, 2018
github stars manager for production
View gitstars.json
{"lastModified":1518593126797,"tags":[{"name":"github","id":1517898407087,"repos":[108359461]},{"name":"star","id":1518593062921,"repos":[108359461]},{"name":"hexo","id":1518593109545,"repos":[23506840]},{"name":"theme","id":1518593114081,"repos":[]}]}
You can’t perform that action at this time.