Skip to content

Instantly share code, notes, and snippets.

View frankhale's full-sized avatar
🎮
writing games

Frank Hale frankhale

🎮
writing games
View GitHub Profile
html,body,iframe,div#content {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
min-height: 100%;
border: 0;
background-color: #000000;
overflow: hidden;
}
@mandulaj
mandulaj / fake.js
Created January 25, 2015 15:05 — forked from kentcdodds/fake.js
var colors = [
'rgb(30, 104, 35)', 'rgb(68, 163, 64)', 'rgb(140, 198, 101)', 'rgb(214, 230, 133)', 'rgb(238, 238, 238)'
];
var days = $('.js-calendar-graph-svg').find('rect.day');
days.css({
fill: colors[4]
});
days.on('click', function(e) {
e.stopPropagation();
$this = $(this);
@frankhale
frankhale / cloak-of-darkness.txt
Last active November 6, 2015 00:00
A hypothetical data file for an interactive fiction engine capable of playing a Cloak of Darkness clone
rooms
1 Opera House Foyer
1 You are in the Foyer of the Opera House. This room has doors to the south and
1 west, also an unusable exit to the north. The room is quiet and you don't see
1 anyone around.
2 Cloak Room
2 You are in the cloak room. The room resembles a large walk in closet. You see
2 a brass hook on the wall.
3 The Bar
3 You are in the bar and it is extremely dark, you cannot see anything right
@frankhale
frankhale / text-adventure-data-format.txt
Last active November 6, 2015 18:15
A pseudo data format for a hypothetical text adventure game engine (I'm assuming stuff which is not shown or documented yet)
text
1 You are in the Foyer of the Opera House. This room has doors to the south and
1 west, also an unusable exit to the north. The room is quiet and you don't see
1 anyone around.
2 You are in the cloak room. The room resembles a large walk in closet. You see
2 a brass hook on the wall.
3 You are in the bar and it is extremely dark, you cannot see anything right
3 now. You can't even see if there is a light switch.
4 You take off your cloak and hang it up on the hook.
6 Because you disturbed the room while moving around in the dark you made the
@trevorbernard
trevorbernard / clojure.clj
Created July 31, 2013 02:49
Super simple way to send and receive Clojure data over ØMQ
(ns cljzmq-examples.serialization.clojure
(:require [clojure.edn :as edn]
[zeromq.zmq :as zmq]))
(defn send-clj
([socket clj-data]
(send-clj socket clj-data 0))
([socket clj-data flags]
(let [data (-> clj-data
(pr-str)
@frankhale
frankhale / youtube-search.js
Last active July 7, 2016 18:09
Proposed fix for issue #15 on YouTube Search
var querystring = require('querystring')
var xhr = require('xhr')
if (!xhr.open) xhr = require('request')
var allowedProperties = [
'fields',
'channelId',
'channelType',
'eventType',
@stephendeyoung
stephendeyoung / actions.cljs
Last active August 16, 2016 07:54
ClojureScript function to show a Bootstrap dropdown.
(defn actions [array-of-funcs]
(doseq [func array-of-funcs] (func)))
@frankhale
frankhale / IF-NOTES.txt
Last active March 21, 2017 14:44
IF NOTES
***The 'properties' property is for anything that is game specific***
-IF SCHEMA BELOW-
Player
- current room
- moves
- score
- items
- properties (eg. health, gold, etc...)
namespace AwesomeAngularMVCApp.Controllers
open System.Threading.Tasks
open System.Web
open System.Web.Mvc
open AwesomeAngularMVCApp.Models
open Microsoft.AspNet.Identity.Owin
open System.Web.Http.Owin
[<Authorize>]
/*
AST tree generated from parsing the following Design By Numbers program:
paper 30
repeat A 0 300
{
pen 50
line 0 55 100 55