Skip to content

Instantly share code, notes, and snippets.

View manuelcanepa's full-sized avatar

Manuel Eduardo Cánepa Cihuelo manuelcanepa

View GitHub Profile
<?php
// https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/
$inputFile = $argv[1];
$percentage = min(100, max(0, (int) $argv[2]));
if (!file_exists($inputFile)) {
throw new InvalidArgumentException('Invalid input file provided');
}
if (!$percentage) {
@manuelcanepa
manuelcanepa / InfoPanel.cs
Created December 20, 2018 16:22
Rust - Adding bradley to InfoPanel
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Oxide.Core;
using Oxide.Core.Plugins;
using Oxide.Game.Rust;
using Oxide.Game.Rust.Cui;