- Creating or destroying bodies and fixtures during a callback.
- Casting a ray where the start and end points are the same position.
- Creating a fixture with a PolygonShape set as a box with 0 width and height
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 uk.co.samatkins.racing.drivers; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.math.Vector2; | |
import com.badlogic.gdx.physics.box2d.Fixture; | |
import com.badlogic.gdx.physics.box2d.RayCastCallback; | |
import com.badlogic.gdx.physics.box2d.World; | |
import uk.co.samatkins.racing.Car; | |
import uk.co.samatkins.racing.Move; |
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
<?php | |
error_reporting(E_ALL ^ E_NOTICE); | |
$url = 'http://www.onegameamonth.com/gameslist'; | |
$games = array(); | |
function addGame($gameDiv) { | |
$game = array(); | |
$ga = $gameDiv->firstChild; |
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
private HashMap<String, String> tracks; | |
// ... | |
tracks = new HashMap<String, String>(); | |
tracks.put("Dumb Loop", "track1.svg"); | |
tracks.put("Dumb Loop 2", "track1.svg"); | |
tracks.put("Dumb Loop 3", "track1.svg"); | |
tracks.put("All these are the same", "track1.svg"); |
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 uk.co.samatkins.beebeard; | |
import java.util.List; | |
import com.badlogic.gdx.math.MathUtils; | |
import com.badlogic.gdx.math.Rectangle; | |
import uk.co.samatkins.Tilemap; | |
import uk.co.samatkins.beebeard.PlayScene.Tile; |
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 uk.co.samatkins.windowcleaningassistant; | |
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.provider.BaseColumns; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |
Paths may be arbitrary sequences of bytes, so we cannot guarantee that they are utf8 or even convertible to utf8 and back. However, we do want to be able to convert the path to utf8, and vice versa.
LexicalPath
currently deals with manipulating paths and getting their parts. Do we roll this intoPath
?Core::Directory
deals with iteration, stat and open. Do we roll this intoPath
?Core::DeprecatedFile
has methods for other filesystem checks and operations. Do we roll this intoPath
?Core::StandardPaths
provides getters for the home directory path, and friends. Do we roll this intoPath
?
Rust has a Path
class for a path, allowing you to access its components and query if it's a directory etc; and PathBuf
class as a kind of StringBuilder thing?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[user] | |
# ... | |
[alias] | |
# Note: This assumes two remotes: | |
# - origin: My fork | |
# - upstream: The "main" repo | |
# | |
# Also, the name of the main branch (usually "master" or "main") is read from the `var.master-branch` git config var. | |
# It defaults to "master". Change it for the current repo with `git config --local var.master-branch BRANCH_NAME_HERE`. |
OlderNewer