Influence maps are an increasingly common technique for implementing more intelligent pathfinding and route planning. For a good introduction see "The Mechanics of Influence Mapping: Representation, Algorithm & Parameters".
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
/** | |
* NSMutableArray+Shuffle.h | |
* | |
* (c) Copyright 2011 David Wagner. | |
* | |
* Complain/commend: http://noiseandheat.com/ | |
* | |
* | |
* Licensed under the MIT license: | |
* |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
let json = """ | |
[ | |
{"person":{"name":"foo", "age":20}}, | |
{"house":{"size":"large"}} | |
] | |
""".data(using: .utf8)! |
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
# Emulate pbcopy and pbpaste for copying to and from the pasteboard/clipboard | |
# | |
# via: http://whereswalden.com/2009/10/23/pbcopy-and-pbpaste-for-linux/ | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |
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
#!/bin/bash | |
####################################### | |
# Simple script to add VPN users to your chap-secrets file. For details | |
# on setting up a VPN on EC2, see: | |
# | |
# http://noiseandheat.com/blog/2012/01/vpn-with-amazon-ec2-or-saving-your-phone-from-promiscuity/ | |
# | |
# | |
# (c) Copyright 2011 David Wagner. | |
# |
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
#!/usr/bin/env bash | |
function execute_after_confirm { | |
read -p "$1 ($2) ? [y/n] " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
shift | |
for var in "$@" | |
do |
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
package | |
{ | |
import ash.core.Engine; | |
import ash.core.Entity; | |
import flash.display.Sprite; | |
public class Main extends Sprite | |
{ |
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
/** | |
* Copyright | |
*/ | |
package org.tryharder.levelup2013 | |
{ | |
import flash.events.Event; | |
import flash.events.ProgressEvent; | |
import flash.events.ServerSocketConnectEvent; | |
import flash.net.ServerSocket; | |
import flash.net.Socket; |
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
function foo() | |
if bingle | |
if bangle | |
if bongle | |
do | |
some | |
really | |
really | |
really | |
long |
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
.DS_Store | |