Skip to content

Instantly share code, notes, and snippets.

@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" {
#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 / background.js
Created April 12, 2021 18:28
ProxyExt
var config = {
mode: "fixed_servers",
rules: {
singleProxy: {
scheme: "http",
host: "{host}",
port: "{port}"
},
bypassList: ["localhost"]
}
@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 / 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
}
### 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:
<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