Skip to content

Instantly share code, notes, and snippets.

View marcelotk15's full-sized avatar
🤡

Marcelo Oliveira marcelotk15

🤡
View GitHub Profile
version: "3.3"
services:
proxy:
extends:
file: proxy/docker-compose.yml
service: proxy
error-pages:
container_name: errorpages
image: tarampampam/error-pages:2.21.0
environment:
version: '3.7'
services:
traefik_v2.0:
image: 'traefik:2.2'
container_name: traefik_v2
hostname: traefik_v2
ports:
- '443:443'
- '80:80'
- '8080:8080'
@marcelotk15
marcelotk15 / combination.js
Last active September 14, 2022 03:20
Combinação de times - T = n jogadores tomado de e p em p, tal que Ti vs Tj não repita nenhum ni. i, j = índices.
const PLAYERS = [1, 2, 3, 4]
const TEAM_SIZE = 2;
function fatorial(n) {
if (n === 0) return 0;
if (n < 0) return NaN;
return n === 1 ? 1 : fatorial(n - 1) * n;
}
<?php
/**
* Created by PhpStorm.
* User: marce
* Date: 16/05/2017
* Time: 00:19
*/
namespace App\Traits;
@marcelotk15
marcelotk15 / trabalho.c
Last active July 11, 2018 02:46
Trabalho Final LP 2 - UFRRJ
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
struct Pedido {
char nome[60];
char item[60];
float preco;
char numero[18];
[{"name":"Offers","color":"Red","position":{"x":362,"y":224},"increment":false,"timestamp":true,"softdelete":false,"column":[{"name":"a","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c129","order":0}],"relation":[],"seeding":[]},{"name":"counteroffers","color":"Green","position":{"x":637,"y":224},"increment":true,"timestamp":true,"softdelete":true,"column":[],"relation":[],"seeding":[]}]
// https://community.bistudio.com/wiki/AI_Sub-skills#general
DMS_ai_skill_static = [["aimingAccuracy",0.20],["aimingShake",0.70],["aimingSpeed",0.75],["spotDistance",0.70],["spotTime",0.50],["courage",1.00],["reloadSpeed",1.00],["commanding",1.00],["general",1.00]]; // Static AI Skills
DMS_ai_skill_easy = [["aimingAccuracy",0.30],["aimingShake",0.50],["aimingSpeed",0.50],["spotDistance",0.50],["spotTime",0.50],["courage",1.00],["reloadSpeed",1.00],["commanding",1.00],["general",0.50]]; // Easy
DMS_ai_skill_moderate = [["aimingAccuracy",0.60],["aimingShake",0.60],["aimingSpeed",0.60],["spotDistance",0.60],["spotTime",0.60],["courage",1.00],["reloadSpeed",1.00],["commanding",1.00],["general",0.60]]; // Moderate
DMS_ai_skill_difficult = [["aimingAccuracy",0.70],["aimingShake",0.70],["aimingSpeed",0.70],["spotDistance",0.70],["spotTime",0.80],["courage",1.00],["reloadSpeed",1.00],["commanding",1.00],["general",0.70]]; // Difficult
DMS_ai_skill_hardcore = [["aimingAccuracy",1.00],["aimingSha
userMods = configSourceModList (configFile >> "CfgPatches");
serverMods = ["@CUP Terrains - Core","@CUP Units","@CUP Vehicles","@CUP Weapons","@TRYK(ver 0.95 fix) [TRYK's Multi-play Uniforms]","@Exile","curator","expansion","@NATO_Rus_Weapons","@Chernarus_Winter_A3_v1.11","@CSAT Snow Tigers 1.06","kart","heli","mark","@USMC_mas","@CBA_A3","@NIArsenal"];
if (count userMods isEqualTo count serverMods) then {
userMods sort true;
serverMods sort true;
if (userMods isEqualTo serverMods) then {
checkExtraMods = "<t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'>ALL FINE!</t><br/>";
} else {
checkExtraMods = "<t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'>YOU ARE USSING SOME WRONG MOD!</t><br/>";
///////// ARMA3 Config CSV EXPORT
///////// Usage: [name,CfgPatches name]
///////// Usage: [name] to export bis stuff
///////// Usage: Paste everything below in the debug console and run it (or exec as script)
///////// ToDo: Filter weapon variants (with sights etc)
private ["_CfgPatches","_configPath","_collectionName","_getClass","_out","_wepsEx","_itemsEx","_magsEx","_backEx","_weapons","_backpacks","_magazines","_glasses","_configName","_picture","_parents","_type","_classname","_mags","_mass","_capacity","_armor","_passthrough","_append","_ammo"];
_CfgPatches = false;
_configPath = "";
@marcelotk15
marcelotk15 / ts3clock.php
Created February 14, 2016 03:27 — forked from HellBz/ts3clock.php
This File Sets 4 Channels to Time (Now) [Require ts3admin.class.php]
<?php
/*
* ts3clock.php
*
* @category Teamspeak 3 Clock
* @author HellBz
* @copyright 2015 HellBz
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link https://gist.github.com/HellBz/2414f4aebbbf28b59e06#file-ts3clock-php
*/