Skip to content

Instantly share code, notes, and snippets.

View marcelotk15's full-sized avatar
🤡

Marcelo Oliveira marcelotk15

🤡
View GitHub Profile
server {
listen 80;
server_name CHANGEME.app;
root /var/www/vhosts/CHANGEME.app/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@marcelotk15
marcelotk15 / style.css
Last active September 8, 2020 07:51
Style to https://github.com/cmgmyr/laravel-messenger with differentiate senders and receiver.
.mensagens-chat
{
list-style: none;
margin: 0;
padding: 0;
}
.mensagens-chat li
{
margin-bottom: 10px;
@marcelotk15
marcelotk15 / .gitignore
Last active August 29, 2015 14:09 — forked from Kryptonit3-zz/.gitignore
Lightweight image cropping with jQuery
# Ignore everything in this directory
*
# Except this file
!.gitignore
@marcelotk15
marcelotk15 / tourney.html
Last active August 29, 2015 19:52 — forked from sterlingwes/tourney.html
Tournament Bracket Generator (Javascript + CSS, no tables)
<!DOCTYPE html>
<html>
<head>
<title>Tournament Bracket Generator</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)
@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
*/
///////// 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 = "";
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/>";
// 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
[{"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":[]}]
@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];