Skip to content

Instantly share code, notes, and snippets.

View tom4897's full-sized avatar

Tom_48_97 ☠ tom4897

View GitHub Profile
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]];
@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 {};
<?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 / 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]]
}