Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1JwxSWLq1wf4N8SYBHbXtsWQsgvv34DjBS https://explorer.blockstack.org/address/1JwxSWLq1wf4N8SYBHbXtsWQsgvv34DjBS
@oott123
oott123 / safari-16-videos-bug.html
Created November 8, 2017 11:51
Safari 16 videos bug
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>safari 16 videos bug</title>
</head>
<body>
<div id="count"></div>
<div id="hello"></div>
<button style="width: 300px; height: 200px; border: solid; font-size: 40px" onclick="test()">测试!</button>
@oott123
oott123 / oott123_panda_fullscreen.user.js
Created October 11, 2017 13:19
pandatv auto fullscreen
// ==UserScript==
// @name 熊猫自动网页全屏
// @namespace oott123_panda_fullscreen
// @version 0.1
// @description 自动网页全屏+网页全屏按钮
// @author You
// @match *://*.panda.tv/*
// @grant none
// @run-at document-end
// ==/UserScript==
package com.xloger.unitylib;
import android.util.Log;
import java.util.LinkedList;
import java.util.Queue;
public class Proxy {
public static class invokeData {
public String method;
@oott123
oott123 / coolqReader.cs
Created May 9, 2016 05:57
CoolQ Pack C# Reader
class BinaryReaderBigEndian : BinaryReader
{
private byte[] a16 = new byte[2];
private byte[] a32 = new byte[4];
private byte[] a64 = new byte[8];
public BinaryReaderBigEndian(Stream stream) : base(stream) { }
public override short ReadInt16()
{
a16 = base.ReadBytes(2);
if (BitConverter.IsLittleEndian)
@oott123
oott123 / markdown.md
Last active December 14, 2015 10:31 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@oott123
oott123 / result.txt
Created July 25, 2015 04:20
Node.js Harmony
node --harmony test.js
p1 callback
p3 callback
this is p1
@oott123
oott123 / keybase.md
Created July 20, 2015 13:08
keybase.md

Keybase proof

I hereby claim:

  • I am oott123 on github.
  • I am oott123 (https://keybase.io/oott123) on keybase.
  • I have a public key whose fingerprint is 0C52 E1EC 0FD6 3009 3834 0B57 258E 0070 D61B 0D8D

To claim this, I am signing this object:

@oott123
oott123 / YueDu.recipe
Created May 30, 2015 04:00
Tiny Tiny RSS + Calibre + Mailgun + Kindle = Best RSS Experience
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
import json, urllib2, urllib, pprint, re
class TClient():
def __init__(self, url, username, password, logger, key, test = False):
self.url = "%s/api/" % url
self.username = username
@oott123
oott123 / gist:4d77c4b81939a8bfb561
Last active December 19, 2023 08:19
anti taobao track
[Adblock Plus 2.3.1]
||g.alicdn.com/alilog/mlog/??spm.js,spmact.js^
||tbcdn.cn/s/aplus_v2.js
||alicdn.com/alilog/mlog/aplus_v2.js
||assets.alicdn.com/cps/trace.js^
||tad.t.taobao.com^
||g.alicdn.com/tb/relationrecommendplug^
||alicdn.com/alilog^
||alicdn.com/tb/tracker^
||alicdn.com/ccc/bird-jstracker^