Skip to content

Instantly share code, notes, and snippets.

🎯

蕴荼 inkedawn

🎯
Block or report user

Report or block inkedawn

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
@inkedawn
inkedawn / logSatatics.cpp
Last active Feb 3, 2016
好雨云日志分析-流量统计 https://www.goodrain.com/
View logSatatics.cpp
#include <iostream>
#include <iomanip>
#include <fstream>
#include <set>
#include <string>
#include <regex>
#include <sstream>
#include <cstdlib>
#include <cstring>
View index.html
<div class="main-container container-fluid card ">
<div class="card-header text-center">
<h1 class="text-primary">Linus Benedict Torvalds</h1>
<img class="rounded-circle img-fluid" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Linus_Torvalds.jpeg/220px-Linus_Torvalds.jpeg" alt="Linus Benedict Torvalds">
</div>
<p class="bg-info"><i class="fa fa-quote-left"></i>林纳斯·本纳第克特·托瓦兹(Linus Benedict Torvalds,1969年12月28日),生于芬兰赫尔辛基市,拥有美国国籍。他是Linux内核的最早作者,随后发起了这个开源项目,担任Linux内核的首要架构师与项目协调者,是当今世界最著名的电脑程序员、黑客之一。他还发起了Git这个开源项目,并为主要的开发者。</p>
<div class="card-body">
<p>生平:</p>
<ul id="biography">
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec accumsan risus cursus augue. In metus tortor, aliquet quis, commodo ut, pharetra vel, diam.</li>
@inkedawn
inkedawn / WeSingDownloader.cs
Last active Feb 27, 2018
“全民K歌” 歌曲下载链接解析
View WeSingDownloader.cs
using System;
using System.Text.RegularExpressions;
using System.Net;
using System.Collections;
public Hashtable parseSong(string playPageUri)
{
const string REGEX_SHARE_URI = "^http:\\/\\/kg\\.qq\\.com\\/share\\.html\\?s=([0-9a-zA-z]+)$";
const string REGEX_PLAY_URI = "\"playurl\":\"(.*?)\"";
const string REGEX_SONG_NAME = "\"song_name\":\"(.*?)\"";
@inkedawn
inkedawn / gist:394b99b9818c004956c73be5dd93fd24
Last active Jan 13, 2018
国务院答题送流量活动一键领取
View gist:394b99b9818c004956c73be5dd93fd24
<style>
/*!
* WeUI v0.4.0 (https://github.com/weui/weui)
* Copyright 2016 Tencent, Inc.
* Licensed under the MIT license
*/html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}*{margin:0;padding:0}a img{border:0}a{text-decoration:none}@font-face{font-weight:400;font-style:normal;font-family:weui;src:url('data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx1AAABfAAAAFZjbWFw64JcfgAAAhQAAAI0Z2x5ZvCBJt8AAARsAAAHLGhlYWQIuM5WAAAA4AAAADZoaGVhCC0D+AAAALwAAAAkaG10eDqYAAAAAAHUAAAAQGxvY2EO3AzsAAAESAAAACJtYXhwAR4APgAAARgAAAAgbmFtZeNcHtgAAAuYAAAB5nBvc3RP98ExAAANgAAAANYAAQAAA+gAAABaA+gAAP//A+kAAQAAAAAAAAAAAAAAAAAAABAAAQAAAAEAAKZXmK1fDzz1AAsD6AAAAADS2MTEAAAAANLYxMQAAAAAA+kD6QAAAAgAAgAAAAAAAAABAAAAEAAyAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQOqAZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6g
@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":[]}]}
@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>
View genesis_public_key
04480894e8133a0dbedd0bfa20b4f610cd9249ba779d0a81f0e6ecbf8e64dd4b42f3aac18156afa5bd20aa931cb56680e7656b2400aa7a54ba283e41fbc8d3613d mickeyandkaka
@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 main.go
package main
import (
"fmt"
"strings"
"errors"
"net/http"
"net/url"
"encoding/json"
"os"
@inkedawn
inkedawn / encrypt.go
Created Dec 29, 2018
Packet Encrypt Algorithm of taomee game Seer2
View encrypt.go
package encrypt
const (
Key = "taomee_seer2_k_~#"
)
// 异或加解密
func xorCalc(result []byte, raw []byte, key []byte) {
if len(result) != len(raw) {
panic(len(result))
You can’t perform that action at this time.