I hereby claim:
- I am m13253 on github.
- I am m13253 (https://keybase.io/m13253) on keybase.
- I have a public key whose fingerprint is 7F9A 921B D8D8 F587 6F1E E6BB 4E13 92C0 6970 0583
To claim this, I am signing this object:
| #include <windows.h> | |
| #include <string> | |
| using namespace std::string_literals; | |
| constexpr size_t buffer_size = 64*1024; | |
| static char buffer[buffer_size]; | |
| static DWORD PrintString(HANDLE h_stdout, std::wstring const& string) { | |
| DWORD count; |
| (function (root, factory) { | |
| var lodash = 'lodash'; | |
| if (typeof define === 'function' && define.amd) { | |
| define([lodash], factory); | |
| } else if (typeof module === 'object' && module.exports) { | |
| module.exports = factory(require(lodash)); | |
| } else { | |
| root.BOMDetect = factory(_); | |
| } | |
| }(this, function (_) { |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python2 | |
| import calendar | |
| import datetime | |
| import os.path | |
| from Tkinter import * | |
| class Application(Frame): | |
| def __init__(self, master): |
| #include <stdio.h> | |
| #include <windows.h> | |
| int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd) { | |
| OSVERSIONINFOEXW version_info; | |
| ZeroMemory(&version_info, sizeof version_info); | |
| version_info.dwOSVersionInfoSize = sizeof version_info; | |
| if(GetVersionExW((LPOSVERSIONINFOW) &version_info)) { | |
| wprintf(L"OSVERSIONINFOEX {\n"); | |
| wprintf(L"\tdwOSVersionInfoSize\t= %u,\n", version_info.dwOSVersionInfoSize); |
| keycode 51 = KP_Enter NoSymbol KP_Enter | |
| keycode 64 = Super_L NoSymbol Super_L | |
| keycode 94 = Shift_L NoSymbol Shift_L | |
| keycode 108 = Control_R NoSymbol Control_R | |
| keycode 128 = Super_R NoSymbol Super_R | |
| keycode 133 = Alt_L Meta_L Alt_L Meta_L | |
| keycode 134 = Alt_R Meta_R Alt_R Meta_R | |
| keycode 169 = backslash bar backslash bar | |
| keycode 170 = backslash bar backslash bar | |
| clear Shift |
| #!/usr/bin/python | |
| # The script was adapted from | |
| # http://ubuntuforums.org/showthread.php?t=701336&p=4368203#post4368203 | |
| # I posted here for convenience. Credit goes to the original author. | |
| # No warranty is provided. Use it at your own risk. | |
| # | |
| # Strips all STL symbols from the object file %1 | |
| # | |
| # Known bugs: | |
| # The original author is not escaping paths containing space, |
| // Compile with: | |
| // i686-w64-mingw32-gcc -g -mwindows -o badwine.exe badwine.c | |
| #include <assert.h> | |
| #include <stdint.h> | |
| #include <windows.h> | |
| HINSTANCE g_hInstance; | |
| HWND g_hWnd; | |
| HDC screen_dc, window_dc, buffer_dc; |
| # Personal reminder | |
| # Do not use it unless you know what it means! | |
| parec --rate=48000 --format=float32le -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | \ | |
| ffmpeg -f x11grab -video_size 1366x768 -framerate 25 -i :0 \ | |
| -f f32le -ar 48k -ac 2 -i - \ | |
| -vf setpts='(RTCTIME-RTCSTART)/(TB*1000000)' \ | |
| -b:v 512k -c:v libx264 -profile:v main -pix_fmt yuv420p -level:v 4.1 -tune:v zerolatency -preset:v ultrafast -g:v 25 \ | |
| -b:a 96k -c:a libfdk_aac -profile:a aac_he \ | |
| -f flv -vsync passthrough rtmp://localhost/live |
| <!DOCTYPE html> | |
| <html lang="zh-cn"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <style> | |
| p { | |
| width: 600px; | |
| font-family: "Source Han Sans SC Normal"; | |
| font-weight: 300; | |
| font-size: 18px; |