Skip to content

Instantly share code, notes, and snippets.

<div id="mapContainer" style="position: absolute; left: 25px; top: 0px; width: 1153px; height: 700px; cursor: auto;"><div unselectable="on" oncontextmenu="return (false);" style="overflow: hidden; position: relative; left: 0px; top: 0px; width: 100%; height: 100%; right: 0px; bottom: 0px;"><div unselectable="on" style="position: absolute; left: -600px; top: -600px; width: 2400px; height: 2400px;"><div unselectable="on" class="0" style="position: absolute; left: -578px; top: 545px; width: 600px; height: 600px;"><div unselectable="on" class="loading" style="position: absolute; left: 0px; top: 0px; width: 600px; height: 600px; z-index: 21; background: url(&quot;img/loading.gif&quot;) center center no-repeat rgb(0, 0, 0); opacity: 0.5; display: none;"></div><img unselectable="on" class="image" src="map_block.php?tx0=-20&amp;ty0=40&amp;tx1=-1&amp;ty1=59&amp;w=600&amp;h=600&amp;version=0" style="position: absolute; left: 0px; top: 0px; width: 600px; height: 600px; z-index: 2;"><img unselectable="on" class="imageMar
### Keybase proof
I hereby claim:
* I am tqk2811 on github.
* I am tqk2811 (https://keybase.io/tqk2811) on keybase.
* I have a public key whose fingerprint is 539E 4668 96AE 0026 F0BD 82F0 EF5E 055A 0AA5 5B3B
To claim this, I am signing this object:
@tqk2811
tqk2811 / main.css
Created August 30, 2020 10:25
main.css
@font-face {
font-family: OpenSans;
src: url(/fonts/OpenSans-Regular.ttf)
}
@font-face {
font-family: OpenSans;
src: url(/fonts/OpenSans-Bold.ttf);
font-weight: 700
}
@tqk2811
tqk2811 / background.js
Last active June 15, 2023 09:12
AutoLoginGoogleExt
chrome.runtime.onMessage.addListener(function (message, sender, callback) {
if (message && message == "close_tab_call") {
chrome.tabs.remove(sender.tab.id, function () {});
}
});
@tqk2811
tqk2811 / background.js
Created April 12, 2021 18:28
ProxyExt
var config = {
mode: "fixed_servers",
rules: {
singleProxy: {
scheme: "http",
host: "{host}",
port: "{port}"
},
bypassList: ["localhost"]
}
#include <GUIConstantsEx.au3>
#include <Misc.au3>
$Form1=GUICreate("" ,150,30,-1,-1,-1 ,-1)
$i = GUICtrlCreateInput("4",5,5,20,20)
GUISetState(@SW_SHOW,$Form1)
Global $dll = DllOpen("user32.dll")
AdlibRegister("_HotKeySet",0)
While 1
$nMsg=GUIGetMsg ()
$i_ = GUICtrlRead($i)
@tqk2811
tqk2811 / gl_ffmpeg.cpp
Created June 5, 2021 05:08 — forked from rcolinray/gl_ffmpeg.cpp
OpenGL-FFMpeg integration
// Use OpenGL 3.0+, but don't use GLU
#define GLFW_INCLUDE_GL3
#define GLFW_NO_GLU
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
extern "C" {
@tqk2811
tqk2811 / Extensions.cs
Last active April 26, 2023 13:15
LiveStream loop video
using System;
using System.Runtime.InteropServices;
using FFmpeg.AutoGen;
namespace StreamVideo.Ffmpeg
{
internal static class Extensions
{
static unsafe string av_strerror(int error)
{
@tqk2811
tqk2811 / H264_Decoder.cpp
Created August 21, 2021 21:10 — forked from roxlu/H264_Decoder.cpp
LibAV parser and decoder example with openGL (YUV420 -> RGB shader).
#include "H264_Decoder.h"
H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user)
:codec(NULL)
,codec_context(NULL)
,parser(NULL)
,fp(NULL)
,frame(0)
,cb_frame(frameCallback)
,cb_user(user)
public static class AdbHelper
{
public static string AdbPath = "adb.exe";
public static MemoryStream ExecuteCommandBuffer(string command)
{
using(Process process = new Process())
{
process.StartInfo.FileName = AdbPath;
process.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();