Skip to content

Instantly share code, notes, and snippets.

View hale's full-sized avatar

Philip Hale hale

View GitHub Profile
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').concat(['gruntacular']).forEach(grunt.loadNpmTasks);
@hale
hale / pathfind2.xml
Last active December 14, 2015 10:18
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Game Name="simple">
<Map>
<Tiles>
<Vector>
<Floor Height="50" Width="100" X="0.0" Y="0.0"/>
<Floor Height="5" Width="5" X="20.0" Y="50.0"/>
<Floor Height="5" Width="5" X="70.0" Y="50.0"/>
<Floor Height="50" Width="15" X="85.0" Y="50.0"/>
<Floor Height="45" Width="85" X="0.0" Y="55.0"/>
@hale
hale / app.js
Last active December 14, 2015 08:48
'use strict';
angular.module('venue4usFrontendApp', ['ui'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
//.when('/', {
//templateUrl: 'views/main.html',
//controller: 'MainCtrl'
//})
.when('/venues/:id', {
Path found!
Path is 44 steps long.
Path took 8 milliseconds to calculate.
1111101111101XXX1111
1111101111101X0X1111
1111101111101X0XXXO1
1111101111101X011111
1111111100101X000001
1111111100101X111111
~/code/angfun ⮀ yo angular
Would you like to include Twitter Bootstrap? (Y/n)
If so, would you like to use Twitter Bootstrap for Compass (as opposed to vanilla CSS)? (Y/n)
Would you like to include angular-resource.js? (Y/n)
Would you like to include angular-cookies.js? (Y/n)
Would you like to include angular-sanitize.js? (Y/n)
create app/styles/main.scss
create app/styles/_compass_twitter_bootstrap.scss
create app/styles/_compass_twitter_bootstrap_awesome.scss
create app/styles/_compass_twitter_bootstrap_responsive.scss
~/code/angfun ⮀ tree
.
├── Gruntfile.js
├── app
│   ├── 404.html
│   ├── components
│   │   ├── angular
│   │   │   ├── angular.js
│   │   │   ├── angular.min.js
│   │   │   └── component.json
@hale
hale / gist:4756453
Created February 11, 2013 18:29
default dungeon map
~/code/dungeon-2013v1 ⮀ ⭠ master± ⮀ mvn clean compile exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AI For Computer Games: Dungeon 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dungeon ---
[INFO] Deleting /Users/philiphale/code/dungeon-2013v1/target
[INFO]
/* OLD */
public boolean onTick(Game game)
{
if (ActionAttack.performAction(fCreature, game))
return true;
if (ActionPickUp.performAction(fCreature, game))
return true;
@hale
hale / pom.xml
Last active December 11, 2015 21:58
pom.xml project configuration file for using the AI for Games dungeon project with Apache Maven
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.abdn.cs3523.dungeon</groupId>
<artifactId>dungeon</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>AI For Computer Games: Dungeon</name>
Stopping by Woods on a Snowy Evening
BY ROBERT FROST
Whose woods these are I think I know.
His house is in the village though;
He will not see me stopping here
To watch his woods fill up with snow.
My little horse must think it queer
To stop without a farmhouse near