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
BIS_hideUnits = { | |
private ["_units", "_mode"]; | |
_units = [_this, 0, objNull, [objNull, []]] call BIS_fnc_param; | |
_mode = [_this, 1, 0, [0]] call BIS_fnc_param; // 0 - hide (default), 1 - unhide | |
if (_mode == 0) then { | |
// Hide | |
{ | |
{ | |
private ["_unit"]; |
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
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import os.path | |
import os | |
import click | |
### SETTINGS ### | |
PIN_NUMBER = 4 | |
LOCKFILE = '/var/alfred.lock' |
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
local font = "PF Ronda Seven" | |
surface.CreateFont( "Microblast_BarText", { | |
font = font, | |
size = 20, | |
weight = 500, | |
blursize = 0, | |
scanlines = 0, | |
antialias = false | |
}) |
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
def parseInput(message, returnType="int", callback=None): | |
while True: | |
res = input(message) | |
if returnType == "int": | |
try: | |
returnVal = int(res) | |
except ValueError: | |
continue |
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
BIS_hideUnits = { | |
private ["_units", "_mode"]; | |
_units = [_this, 0, objNull, [objNull, []]] call BIS_fnc_param; | |
_mode = [_this, 1, 0, [0]] call BIS_fnc_param; // 0 - hide (default), 1 - unhide | |
if (_mode == 0) then { | |
// Hide | |
{ | |
{ | |
private ["_unit"]; |
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
private ["_marker"]; | |
if (!isNil "IntelAdded") exitWith {}; | |
_marker = createMarkerLocal ["m2", getMarkerPos "mkrM2"]; | |
_marker setMarkerShape "ICON"; | |
_marker setMarkerType "hd_warning"; | |
_marker setMarkerText "Static MG"; | |
_marker = createMarkerLocal ["range", getMarkerPos "mkrRange"]; |
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
--[[ | |
Entities list by Walter Cruz. | |
Library by _FR_Starfox64. | |
]]-- | |
htmlentities = {} | |
htmlentities.entities = { | |
[" "] = " ", | |
["¡"] = "¡", |
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
hook.Add("PostDrawOpaqueRenderables", "CAH_PostDrawOpaqueRenderables", function() | |
for k, cahGame in pairs(CAH:GetGames()) do | |
local cahTable = cahGame:GetTable() | |
if (IsValid(cahTable) and cahTable:GetPos():DistToSqr(LocalPlayer():GetPos()) < 62500) then | |
local angles = cahTable:GetAngles() | |
angles:RotateAroundAxis(angles:Up(), 90) | |
cam.Start3D2D(cahTable:LocalToWorld(cahTable.origin), angles, SCALE) | |
local cursor = CAH:GetCursor(cahTable, angles) |