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
{ | |
timeChanged: function() { | |
this.timeHours = this.claim.Time.split(':')[0]; | |
this.timeMinutes = this.claim.Time.split(':')[1].split(' ')[0]; | |
this.timeOfDay = this.claim.Time.split(' ')[1]; | |
console.log(this.timeHours, this.timeMinutes, this.timeOfDay); | |
}, | |
timeEdited: function() { | |
let hours = parseInt(this.timeHours); |
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
from __future__ import print_function | |
from builtins import range | |
import itertools | |
import MalmoPython | |
import json | |
import logging | |
import math | |
import os | |
import random | |
import sys |
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"; | |
/** | |
* Create a new CustomDate object. | |
* @param {Number} year 4-digit year | |
* @param {Number} month 1-indexed month (1 = January, etc.) | |
* @param {Number} day Day of the month (1-31) | |
*/ | |
let CustomDate = function(year, month, day) { | |
// Set the defaults: |
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 customJSONStringify(value) { | |
function writeJSON(value) { | |
switch (toType(value)) { | |
case "object": | |
return writeObject(value); | |
case "array": | |
return writeArray(value); |
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
.tabbrowser-tab { | |
min-width: initial !important; | |
} | |
.tab-content { | |
overflow: hidden !important; | |
} |
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
/** | |
* Attempts to add a Shape to a NestingShape object. If successful, a | |
* two-way link is established between the NestingShape and the newly-added | |
* Shape. Note that this method has package visibility. | |
* @param shape the shape to be added. | |
* @throws IllegalArgumentException if an attempt is made to add a Shape | |
* that will not fit within the bounds of the proposed NestingShape object. | |
*/ | |
void add(Shape shape) throws IllegalArgumentException { |
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
#!/bin/sh | |
# Adapted from https://gist.github.com/jgranick/8cc40e2e0f277146725f | |
# Assumes Ubuntu system. Update HAXE_VERSION and NEKO_VERSION with up-to-date releases. | |
HAXE_VERSION=3.3.0-rc.1 | |
NEKO_VERSION=2.1.0 | |
if [ "$1" = "y" -o "$1" = "-y" ]; then |
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
import org.lwjgl._ | |
import org.lwjgl.glfw._ | |
import org.lwjgl.opengl._ | |
import org.lwjgl.glfw.Callbacks._ | |
import org.lwjgl.glfw.GLFW._ | |
import org.lwjgl.opengl.GL11._ | |
import org.lwjgl.system.MemoryUtil._ | |
object Main { |
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
public static function borderAutoTile(xt:Int, yt:Int, context:ITileable, cur:RLTile, values:BorderValues):Int | |
{ | |
var val:Int = 1; | |
var u:RLTile = context.read(xt, yt - 1); | |
var r:RLTile = context.read(xt + 1, yt); | |
var d:RLTile = context.read(xt, yt + 1); | |
var l:RLTile = context.read(xt - 1, yt); | |
//check whether the surrounding tiles are walls. |
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
package ; | |
import flixel.FlxG; | |
import flixel.tile.FlxTilemap; | |
import flixel.util.FlxPoint; | |
/** | |
* Class for management of an array of tilemaps. | |
*/ | |
class TilemapGrid |
NewerOlder