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
// ==UserScript== | |
// @name CATS | |
// @namespace ardaozkal | |
// @author ardaozkal | |
// @description Cool Anti Troll Script | |
// @include * | |
// @version 1.1 | |
// @grant none | |
// ==/UserScript== |
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
public static List<string> GetLinks(string message) | |
{ | |
List<string> list = new List<string>(); | |
Regex urlRx = new Regex(@"((https?|ftp|file)\://|www.)[A-Za-z0-9\.\-]+(/[A-Za-z0-9\?\&\=;\+!'\(\)\*\-\._~%]*)*", RegexOptions.IgnoreCase); | |
MatchCollection matches = urlRx.Matches(message); | |
foreach (Match match in matches) | |
{ | |
list.Add(match.Value); | |
} |
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
//http://github.com/ardaozkal/DankNet-GTAV is current version | |
//This one took me about 15 mins to write, then I turned this into a menu, which ended up being the (arguably and self claimed) best .Net menu. | |
using System; | |
using GTA; | |
using GTA.Math; | |
using GTA.Native; | |
using System.Windows.Forms; | |
public class SmallTrainer : Script |
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
int SteamLevel = 1111; //edit this as you want | |
double PricePerBadge = 0.4; //change this for yourself | |
double price = 0; //don't touch | |
for (int i = 0; i < SteamLevel; i++) | |
{ | |
price += (Math.Floor((double)(i/10))+1)*PricePerBadge; | |
} | |
Console.WriteLine(price.ToString()); | |
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
/* preferred itoa - good for any base */ | |
char * | |
itoa (int value, char *result, int base) | |
{ | |
// check that the base if valid | |
if (base < 2 || base > 36) { *result = '\0'; return result; } | |
char* ptr = result, *ptr1 = result, tmp_char; | |
int tmp_value; |
NewerOlder