This is a simple dice rolling application built as part of an ember.js tutorial by William Hart. See the tutorial at http://www.williamhart.info/an-emberjs-beginners-tutorial.html.
This software is free to use and released in the public domain.
| /**************************************/ | |
| /* Charlieplexing 6 LEDs with 3 Pins */ | |
| /* */ | |
| /* Code written by William Hart, 2011 */ | |
| /* http://www.williamhart.info */ | |
| /* */ | |
| /* Uses 3 pins to power a network of */ | |
| /* 6 LEDs using the charlieplexing */ | |
| /* technique. */ | |
| /**************************************/ |
| // a basic counter and date template for adding new data | |
| var seconds = 0; | |
| var base_date = "2012-10-09 12:57:"; | |
| // declare five data arrays | |
| var all_data = [ | |
| [], | |
| [], | |
| [], | |
| [], |
| # a simple Python plugin loading system | |
| # see http://stackoverflow.com/questions/14510286/plugin-architecture-plugin-manager-vs-inspecting-from-plugins-import | |
| class PluginMount(type): | |
| """ | |
| A plugin mount point derived from: | |
| http://martyalchin.com/2008/jan/10/simple-plugin-framework/ | |
| Acts as a metaclass which creates anything inheriting from Plugin | |
| """ |
This is a simple dice rolling application built as part of an ember.js tutorial by William Hart. See the tutorial at http://www.williamhart.info/an-emberjs-beginners-tutorial.html.
This software is free to use and released in the public domain.
| """ | |
| Free to use under the MIT license | |
| Builds a static site from a list of Markdown source files. The source | |
| files should have the same directory structure as the desired output. | |
| Files are rendered using Markdown2 and can declare metadata variables: | |
| --- |
This is a simple Python / PIL utility for taking a series of images in a tile map set and stitching them together into a single image. This is being used to convert these http://forums.bistudio.com/showthread.php?178671-Tiled-maps-Google-maps-compatible-(WIP) for www.anvilproject.com.
| /// | |
| /// PlayerManager.cs | |
| /// | |
| using System; | |
| public class PlayerManager : MonoBehaviour { | |
| public event EventHandler PlayerDied; | |
| public abstract class AbstractComponent : IComponent | |
| { | |
| [NonSerialized] | |
| protected Entity _owner; | |
| public AbstractComponent(Entity owner) | |
| { | |
| _owner = owner; | |
| ID = Guid.NewGuid().ToString("n"); | |
| } |
| // scale the wall up | |
| wall_scale = 10; | |
| // set wall proportions | |
| wall_length = 1; | |
| wall_thickness = 0.3; | |
| wall_height = 0.8; | |
| // crennelation properties | |
| cren_duty_cycle = 0.5; |
| namespace Goliath.Networking | |
| { | |
| #region Dependencies | |
| using BeardedManStudios.Forge.Networking; | |
| using BeardedManStudios.Forge.Networking.Unity; | |
| // other usings | |
| using UnityEngine; | |
| #endregion |