This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Init | |
set ROOT_PATH=%~dp0..\.. | |
rem get #define VERSION "_VER_" | |
for /f "tokens=* delims= " %%a in (%ROOT_PATH%\src\defs.h) do ( | |
echo %%a | find "VERSION" > nul | |
if not errorlevel 1 set LINE=%%a | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"shell_cmd": "g++.exe \"${file}\" -O2 -std=c++0x -s -static -o \"${file_path}\\\\${file_base_name}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"path" : "%PATH%;c:\\mingw32\\bin\\", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++, source.cpp", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"_UNICODE\" /D \"UNICODE\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE", | |
"EXE_SUFIX" : "_x64.exe" | |
}, | |
"path" : "%PATH%;%ProgramFiles(x86)%\\microsoft visual studio 11.0\\vc", | |
"shell_cmd": "vcvarsall.bat amd64 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}%EXE_SUFIX%\" && del *.obj", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"_UNICODE\" /D \"UNICODE\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\" /D_USING_V110_SDK71_ /I \"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Include\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE,5.02 /LIBPATH:\"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Lib\\x64\"", | |
"EXE_SUFIX" : "_x64_xp.exe" | |
}, | |
"path" : "%PATH%;%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Bin;%ProgramFiles(x86)%\\microsoft visual studio 11.0\\vc", | |
"shell_cmd": "vcvarsall.bat amd64 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}%EXE_SUFIX%\" && del *.obj", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sort Ru-Board mail list | |
// @author Ruzzz | ruzzzua@gmail.com | |
// @include http://forum.ru-board.com/tools.cgi?action=maillist | |
// @version 0.0.1 | |
// @date 2014-02-04 | |
// ==/UserScript== | |
(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Usage: 7zip-Pack.bat DIR_OR_FILE_PATH | |
:: Or copy to %AppData%\Microsoft\Windows\SendTo\ | |
:: Dependences: http://www.7-zip.org | |
:: https://gist.github.com/Ruzzz/8669153 | |
@echo off | |
IF (%1)==() GOTO :NO_PARAMETER | |
:LOOP | |
7za a -y -t7z "%~f1.7z" %1 -mx9 -mhe=on -mtc=on -m0=LZMA2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Usage: [FILENAME].bat DIR_OR_FILE_PATH | |
:: Or copy to %AppData%\Microsoft\Windows\SendTo\ | |
:: Dependences: http://www.7-zip.org | |
@echo off | |
IF (%1)==() GOTO :NO_PARAMETER | |
:LOOP | |
[COMMAND %1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Center txt | |
// @author Ruzzz | ruzzzua@gmail.com | |
// @include http://*/*.txt | |
// @version 0.0.1 | |
// @date 2014-02-04 | |
// ==/UserScript== | |
(function () { | |
var e=document.getElementsByTagName('pre')[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE" | |
}, | |
"path" : "%PATH%;%ProgramFiles%\\microsoft visual studio 12.0\\vc", | |
"shell_cmd": "vcvarsall.bat x86 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}.exe\" && del *.obj", | |
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\" /D_USING_V110_SDK71_ /I \"%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\7.1A\\Include\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE,5.01 /LIBPATH:\"%ProgramFiles%\\Microsoft SDKs\\Windows\\7.1A\\Lib\"" | |
}, | |
"path" : "%PATH%;%ProgramFiles%\\Microsoft SDKs\\Windows\\7.1A\\Bin;%ProgramFiles%\\microsoft visual studio 12.0\\vc", | |
"shell_cmd": "vcvarsall.bat x86 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}.exe\" && del *.obj", | |
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]", |