Skip to content

Instantly share code, notes, and snippets.

package service;
import service.Node;
class Engine {
public var map:Array<Array<Node>>;
public var startNode(default, set_startNode):Node;
public var endNode(default, set_endNode):Node;
public function new(){
this.map = new Array();
package service;
class Node {
public var x:Int;
public var y:Int;
public var cost:Int;
public var type(default, set_type):Type;
public var parent:Node;
public var direction:Int;
public var open:Bool;
public var close:Bool;
```
// Save
Upon Pressing Enter
+IsSaving == 0
--> (Text) Set Focus On
--> (Text) Set selection to 99999...
// Unsave
Upon Pressing Enter
+IsSaving == 1
What Is Product-Market Fit? 3
The Product-Market Fit Pyramid 4
Quicken: from #47 to #1 7
The Lean Product Process 8
Chapter 2 Problem Space versus Solution Space 13
The Space Pen 13
Problems Define Markets 15
The What and the How 16
Outside-In Product Development 16
Should You Listen to Customers? 17
When you start a game, you get a small base in the middle of a cavern. You have one worker and low visibility.
Surrounding your base, about 5 tiles away, are walls all around you.
############### # = Rock Wall, able to be mined
#### ########## B = Base
## ## #### M = Miner
# #
## B M ##
### # ##
##### #########
@jacobparis
jacobparis / easing.hx
Created October 4, 2017 01:44
Easing Functions
package util;
typedef EasingFunction = Float->Float->Float->Float->Float->Float;
class Easing
{
// simple linear tweening - no easing:Float, no acceleration
public static function linear(time:Float, startValue:Float, changeInValue:Float, duration:Float, ?o:Float): Float
{
return changeInValue * time / duration + startValue;
class Worker {
public var miningExperience:Float = 0;
public var walkingExperience:Float = 0;
public var carryExperience:Float = 0;
public var attackExperience:Float = 0;
public function new() {}
/** A worker is likely to accept any task that surpasses its threshold.
* A skilled miner will thus have a very low mining threshold **/
"Balin",
"Bashful",
"Bifur",
"Bob",
"Bofur",
"Bombur",
"Doc",
"Dopey",
"Dori",
"Durin",
// Triggered on click
public function showNotifications() {
var options = new DialogOptions();
options.title = "Notifications";
var dialog = ComponentMacros.buildComponent("assets/ui/events.xml");
dialog.height = 400;
var tabView = dialog.findComponent("tabview", null, null, "css");
var eventTab:ScrollView = new ScrollView();
@jacobparis
jacobparis / har.json
Created July 28, 2018 03:02
Connection HAR
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2018-07-28T03:01:09.144Z",