Skip to content

Instantly share code, notes, and snippets.

View tom4897's full-sized avatar

Tom_48_97 ☠ tom4897

View GitHub Profile
@tom4897
tom4897 / foreach.cpp
Last active December 21, 2015 06:29
SQF Foreach method of Warka
// Warka
{
_inputData = _x;
_block = [_inputData, 0, "", [""]] call BIS_fnc_param;
_format = [_inputData, 1, "<t align = 'center' shadow = '1' size = '0.7'>%1</t><br/>", [""]] call BIS_fnc_param;
_blockArray = toArray _block;
{
_blockArray set [_forEachIndex, toString [_x]]
}
<?php
/* --------------------- */
require "class/twitteroauth.php";
$twitter_api = new TwitterOAuth (consumer_key, consumer_secret, oauth_token, oauth_token_secret);
$tweets = $twitter_api -> get ('statuses/user_timeline', array('count' => 5));
foreach ($tweets as $key => $tweets) {
echo "&bull; " . $tweets->text . "<br/>";
}
?>
@tom4897
tom4897 / CfgFunctions.hpp
Last active December 21, 2015 08:39
#define __filename CfgFunctions.hpp
class cfgFunctions
{
class BIS
{
class system
{
class bl {};
class convertToSqmPos {};
class debugLog {};
class debugLogF {};
format ["testUnit1: getPosATL: %1 ; getPosASL: %2 ; getPos: %3 ; getTerrainHeightASL: %4", getPosATL testUnit1,getPosASL testUnit1, getPos testUnit1, getTerrainHeightASL [getPos testUnit1 select 0, getPos testUnit1 select 1]];
format ["testTrigger1: getPosATL: %1 ; getPosASL: %2 ; getPos: %3 ; getTerrainHeightASL: %4", getPosATL testTrigger1,getPosASL testTrigger1, getPos testTrigger1, getTerrainHeightASL [getPos testTrigger1 select 0, getPos testTrigger1 select 1]];
:: this is dwarden's experimental TCP related batch
@netsh int tcp set global chimney=enabled
@netsh int tcp set global dca=enabled
@netsh int tcp set global ecncapability=enabled
@netsh int tcp set global congestionprovider=ctcp
@netsh int tcp set global timestamps=enabled
@rem netsh int tcp set global autotuninglevel=disabled
@netsh int tcp show global autotuninglevel
:: disabling autotuning needs testing, sometimes help sometimes not
@tom4897
tom4897 / class_cfgBuldozer.cpp
Last active August 29, 2015 13:57
bulldozer fixe
class cfgBuldozer
{
uiBackground[] = {0,0,0,1};
uiForeground[] = {1,1,1,1};
uiBorderSize = "0.002f";
infoHeight = "0.022f";
scaleInfoWidth = "0.3f";
toolInfoWidth = "0.6f";
fadeTimeMs = 6000;
font = "LucidaConsoleB";
@tom4897
tom4897 / RscDisplayMain.hpp
Created April 3, 2014 15:16
Main UI, first shot.
//--- RscDisplayMain
#define IDC_RSCDISPLAYMAIN_WIP_COPYRIGHTTEXT 17031
#define IDC_RSCDISPLAYMAIN_WIP_GAMELOGO 17631
#define IDC_RSCDISPLAYMAIN_WIP_TILEGROUP 18331
#define IDC_RSCDISPLAYMAIN_WIP_NEWS 18332
#define IDC_RSCDISPLAYMAIN_WIP_BUTTONEXIT 18431
#define IDC_RSCDISPLAYMAIN_WIP_BUTTONOPTIONS 18432
#define IDC_RSCDISPLAYMAIN_WIP_BUTTONEDITOR 18433
#define IDC_RSCDISPLAYMAIN_WIP_BUTTONEXPORT 18434
#define IDC_RSCDISPLAYMAIN_WIP_BUTTONALLMISSIONS 18435
External Viewer = P:\buldozer.exe -window -buldozer -noland -cfg="L:\Config\buldozer.cfg"
@echo off
set Arma3CommunityToolsPath="L:\Arma3CommunityTools\"
L:
cd %Arma3CommunityToolsPath%
AddonBuilder.exe -help
pause
@echo off
l:
cd "l:\Poseidon Tools\dev\pe\internal\"
tm4_indenter.exe -silent -nobackup "C:\Users\Tom_48_97\Desktop\t.sqf"