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
using UnityEngine; | |
using System.IO; | |
using System.Text; | |
using System; | |
public class TerrainHeightParser : MonoBehaviour { | |
private Terrain terrain; | |
private int hmWidth; | |
private int hmHeight; |
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
'use strict'; | |
var debugging = false; | |
var requestBinUrl = 'http://requestb.in/1b60sct1'; | |
function setRequestParams(bundle, params) { | |
bundle.request.params = params; | |
return bundle.request; | |
} |
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
{ | |
"email": "[email protected]", | |
"pass": "", | |
"client_id": "", | |
"client_secret": "", | |
"redirect_uri": "http://localhost:3000" | |
} |
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
"use strict"; | |
function overload(f1, f2) { | |
if (f1.length === f2.length) | |
throw new TypeError; | |
else | |
return function(...args) { | |
let params = Array.prototype.splice.call(arguments, 0); | |
if (params.length === f1.length) |
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
"use strict"; | |
var fs = require('fs'); | |
var http = require('http'); | |
var container = {}; | |
var server = http.createServer(handleRequest); | |
function handleRequest(request, response) { |
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 getTarget() { | |
let entityValues = Object.values(parent.entities); | |
let greenWorms = entityValues.filter(entity => entity.mtype === 'worm'); | |
let redWorms = entityValues.filter(entity => entity.mtype === 'osnake'); | |
let target; | |
if (redWorms.length > 0) | |
target = findClosest(redWorms); |
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
var startXp = getTotalXp(); | |
var startTime = Date.now(); | |
var hourlyXpArray = []; | |
var xpPerMinute; | |
function getTarget() { | |
let entityValues = Object.values(parent.entities); | |
//let greenWorms = entityValues.filter(entity => entity.mtype === 'armadillo'); | |
//let redWorms = entityValues.filter(entity => entity.mtype === 'squigtoad'); |
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
const position = { x: 0, y: 0 } | |
// left up right down | |
const Dir = [ [0, 3, 1, {x: -1, y: 0}], [1, 0, 2, {x: 0, y: 1}], [2, 1, 3, {x: 1, y: 0}], [3, 2, 0, {x: 0, y: -1}]] | |
let currentDirectionIndex = 1 | |
function move(input) { | |
const dir = input[0] | |
const steps = input.substr(1) |
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
const position = { x: 0, y: 0 } | |
// left up right down | |
const Dir = [ [0, 3, 1, {x: -1, y: 0}], [1, 0, 2, {x: 0, y: 1}], [2, 1, 3, {x: 1, y: 0}], [3, 2, 0, {x: 0, y: -1}]] | |
const positionHistory = [] | |
let currentDirectionIndex = 1 | |
function move(input) { |
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
var container = { | |
application: { | |
id: "awesome-app", | |
state: { | |
id: "running" | |
}, | |
solution: { | |
id: "awesome-solution", | |
application: [ | |
{ |
OlderNewer