Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections.Generic;
public class ClosureTest : MonoBehaviour {
public delegate void TestAction();
void Start () {
Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>() {
{ "Foo" , new List<string>() { "Goo", "Hoo", "Ioo" } },
@Marneus68
Marneus68 / rm_r.c
Created May 1, 2012 20:59
Recursive file and directory removal in C
int rm_r(const char* e_path)
{
DIR *dir = opendir(e_path);
struct dirent *ent;
if (dir == NULL)
/* error while opening the directory */
return -1;
/* DA MAGICKS */