Skip to content

Instantly share code, notes, and snippets.

@dofine
dofine / splatoon2.json
Created August 16, 2021 06:58
splatoon2.json
{
"other_team_members":[
{
"player":{
"player_rank":58,
"star_rank":0,
"head":{
"thumbnail":"/images/head/673be7be717b2f038562a1a523fb8db7503f843b.png",
"rarity":2,
"id":"24002",
@dofine
dofine / result.json
Created August 10, 2021 02:34
splatoon 2 battle result
{
"battle_number": "791",
"game_mode": {
"name": "Regular Battle",
"key": "regular"
},
"my_team_members": [
{
"player": {
"player_rank": 29,
⚔️ Dota 2 🕘 1845 hrs 33 mins
🍳 PUBG: BATTLEGROUNDS 🕘 291 hrs 36 mins
🎮 Dota Underlords 🕘 228 hrs 25 mins
🎮 Sekiro™: Shadows Die Twice 🕘 61 hrs 26 mins
🎮 The Witcher 3: Wild Hunt 🕘 9 hrs 55 mins
@dofine
dofine / 导出京东订单.js
Created August 6, 2020 04:54
导出京东订单
// ==UserScript==
// @name 导出京东订单
// @namespace win.somereason.web.utils
// @version 2018.07.23.1
// @description 这个脚本帮助你导出京东的订单列表页中的订单,仅限本页.
// @author somereason
// @date 2019-04-29
// @match *://order.jd.com/center/list.action*
// @grant none
// ==/UserScript==
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
# Rime schema
# encoding: utf-8
schema:
schema_id: double_pinyin_flypy
name: 小鶴雙拼
version: "0.18"
author:
- double pinyin layout by 鶴
- Rime schema by 佛振 <[email protected]>
@dofine
dofine / gist:adce618529efd5667c6caef7d8f45f25
Created June 11, 2018 08:50
autohotkey capslock ctrl
; Sends Esc if capslock is pressed alone
; Sends Ctrl+key if capslock is pressed with another key
; TODO: work with arrow keys and other modifiers (e.g. shift, control)
SetCapsLockState AlwaysOff
CapsLock::Send {esc}
CapsLock & a::Send ^a
CapsLock & b::Send ^b
CapsLock & c::Send ^c
CapsLock & d::Send ^d
```python
import asyncio
from aiohttp import ClientSession, CookieJar
import os
import json
import pickle
import http.cookiejar
cj = http.cookiejar.MozillaCookieJar('cookies.txt')
cj.load()
@dofine
dofine / chat.py
Created March 27, 2016 17:59
chat api
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import logging
import os
from cookielib import LWPCookieJar
import requests
@dofine
dofine / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console