Skip to content

Instantly share code, notes, and snippets.

View kikyous's full-sized avatar
🎯
Focusing

chenyunjie kikyous

🎯
Focusing
View GitHub Profile
<style type="text/css">
#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
</style>
<div id="allmap"></div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=myTuIQ3Uc0cfVMp8Mhocf5MW"></script>
<script type="text/javascript">
var map = new BMap.Map("allmap");
var point = new BMap.Point(116.404, 39.915);
map.centerAndZoom(point, 15);
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open('http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%253daps&field-keywords=women+dress'))
doc.css('.a-fixed-left-grid-col.a-col-right').each do |c|
a=c.css('.s-access-detail-page')
p [a.text, a.attr('href').value, c.css('.s-price').text]
end
@kikyous
kikyous / go.gateway-3ds.com
Last active April 8, 2023 10:41
go.gateway-3ds.com
<html>
<head>
<style>
body {
color:white;
background:black;
}
</style>
@kikyous
kikyous / proxy.go
Last active December 26, 2015 23:19
package main
import (
"github.com/elazarl/goproxy"
"log"
"net/http"
"regexp"
)
var players = map[string] string {
"youku_loader": "http://chat.saas.bdfzer.com/uploads/20131101171855-loader.swf",
#!/user/bin/env ruby
#coding: utf-8
APP_ROOT = File.dirname(__FILE__)
PROJECT_NAME = 'My Fantastic Game'
PROJECT_HOST = '0.0.0.0'
WEB_PORT = 9292
WS_PORT = 8080
COOKIE_KEY = 'my.session.key'
COOKIE_SECRET = 'shh_replace_me_withsomething_moresecret'
Started GET "/self_drivings/44?status=success&fee=1&bankDealId=130913404926&bankId=BOC&ext1=44&payAmount=1&dealId=1185702759&orderTime=20130913143903&signMsg=9CCC771523EBED8B58C5296ECF823404&payType=10&language=1&errCode=&version=v2.0&ext2=&signType=1&orderAmount=1&orderId=ZJ20130913143836728&dealTime=20130913144138&merchantAcctId=1002213648401&payResult=10" for 1.83.125.41 at 2013-09-13 14:41:11 +0800
Processing by SelfDrivingsController#show as HTML
Parameters: {"status"=>"success", "fee"=>"1", "bankDealId"=>"130913404926", "bankId"=>"BOC", "ext1"=>"44", "payAmount"=>"1", "dealId"=>"1185702759", "orderTime"=>"20130913143903", "signMsg"=>"9CCC771523EBED8B58C5296ECF823404", "payType"=>"10", "language"=>"1", "errCode"=>"", "version"=>"v2.0", "ext2"=>"", "signType"=>"1", "orderAmount"=>"1", "orderId"=>"ZJ20130913143836728", "dealTime"=>"20130913144138", "merchantAcctId"=>"1002213648401", "payResult"=>"10", "id"=>"44"}
[core]
editor = vim
pager = less -F -X
[color]
ui = true
[user]
email = [email protected]
name = kikyous
[alias]
s = status
@kikyous
kikyous / vimrc
Last active December 21, 2015 13:59
" Modeline and Notes
" vim: set sw=4 ts=4 sts=4 et tw=78 foldmarker={,} foldlevel=0 foldmethod=marker:
"
" _ _ _ _
" | | _(_) | ___ _ __ _(_)_ __ ___
" | |/ / | |/ / | | |____\ \ / / | '_ ` _ \
" | <| | <| |_| |_____\ V /| | | | | | |
" |_|\_\_|_|\_\\__, | \_/ |_|_| |_| |_|
" |___/
"
;;配置路径
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'load-path "~/.emacs.d/evil")
(add-to-list 'load-path "~/.emacs.d/auto-complete")
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
;;摘掉菜单,工具栏和滚动条
;;M-` or F10 菜单唤出热键
;; (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
@kikyous
kikyous / ASCII-Art.txt
Last active February 9, 2018 10:39
ASCII Art Generator
_ _ _ _
| | _(_) | ___ _ __ _(_)_ __ ___
| |/ / | |/ / | | |____\ \ / / | '_ ` _ \
| <| | <| |_| |_____\ V /| | | | | | |
|_|\_\_|_|\_\\__, | \_/ |_|_| |_| |_|
|___/
Font Name: Standard
http://patorjk.com/software/taag/#p=display&f=Standard&t=kiky-vim