Skip to content

Instantly share code, notes, and snippets.

[2294979.896] wl_keyboard@29.enter(6987, wl_surface@32, array[0])
[2294979.943] wl_keyboard@29.modifiers(6988, 0, 0, 0, 0)
[2294980.051] zwp_text_input_v3@44.enter(wl_surface@32)
[2294980.391] -> zwp_text_input_v3@44.enable()
[2294980.415] -> zwp_text_input_v3@44.set_surrounding_text("", 0, 0)
[2294980.422] -> zwp_text_input_v3@44.set_text_change_cause(1)
[2294980.435] -> zwp_text_input_v3@44.set_content_type(1, 0)
[2294980.443] -> zwp_text_input_v3@44.set_cursor_rectangle(69, 97, 0, 18)
[2294980.451] -> zwp_text_input_v3@44.commit()
[2294993.975] wl_keyboard@29.keymap(1, fd 14, 64846)
abz 
auz 
bgz 
blz 
chds 
chdsf 
clbm 
clm 
cmz 
csz 
### Keybase proof
I hereby claim:
* I am wengxt on github.
* I am csslayer (https://keybase.io/csslayer) on keybase.
* I have a public key whose fingerprint is 2CC8 A060 9AD2 A479 C65B 6D5C 8E8B 898C BF24 12F9
To claim this, I am signing this object:
import sys
import random
prob = float(sys.argv[1]) if len(sys.argv) > 1 else 0.015
acc = 0
award = 0
total = 1000000
g = 100
@wengxt
wengxt / test.cpp
Last active March 7, 2018 17:48 — forked from yume-chan/test.cpp
#include <functional>
#include <iostream>
template <class F>
struct wrapper {
F f;
};
template <class F>
# coding: utf-8
import requests
import json
import time
import sys
import random
from threading import Thread
#输入你对应的authkey和sign
auth_key = ''
@wengxt
wengxt / org.test.Fcitx.json
Created October 27, 2017 16:40
fcitx in flatpak test
{
"app-id": "org.test.Fcitx",
"runtime": "org.gnome.Platform",
"runtime-version": "3.24",
"sdk": "org.gnome.Sdk",
"command": "/usr/bin/zenity",
"finish-args": [
"--share=ipc", "--socket=x11",
"--env=GTK_IM_MODULE_FILE=/app/lib/gtk-3.0/3.0.0/immodules.cache"
],
#include <fcitx-utils/metastring.h>
#include <iostream>
template<int b>
class ItoA2 {
public:
using cur = typename ItoA2<b % 10>::type;
using remain = typename ItoA2<b / 10>::type;
using type = typename fcitx::ConcatMetaString<remain, cur>::type;
};
@wengxt
wengxt / introspect.c
Last active April 2, 2017 04:40
introspect.c
/* Copyright (c) 2017-2017 Weng Xuetian
* Copyright (c) 2007-2014 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
### Keybase proof
I hereby claim:
* I am wengxt on github.
* I am csslayer (https://keybase.io/csslayer) on keybase.
* I have a public key whose fingerprint is 2CC8 A060 9AD2 A479 C65B 6D5C 8E8B 898C BF24 12F9
To claim this, I am signing this object: