Skip to content

Instantly share code, notes, and snippets.

@mayerwin
mayerwin / trakt-backup.php
Created February 11, 2019 02:41 — forked from darekkay/trakt-backup.php
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";
@mayerwin
mayerwin / .htaccess
Created May 12, 2016 19:34 — forked from jdevalk/.htaccess
These three files together form an affiliate link redirect script.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
</IfModule>
; The official HD AI
; An Artificial Intelligence Script written by Archon and Promiskuitiv
; Get in contact with Promiskuitiv by sending a mail to [email protected]
; List of taunts it reacts to:
; Standard taunts.
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy.
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units.
@mayerwin
mayerwin / Program.cs
Created September 3, 2012 16:49 — forked from svick/Program.cs
SO Task inlining
using System;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main() {
Task.Factory.StartNew(() => {
Task.Factory.StartNew(() => Test1()).Wait();
Task.Factory.StartNew(() => Test2()).Wait(); //Sometimes works, sometimes deadlocks.