This file contains hidden or 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
interface Answer<T> {} | |
enum Answers implements Answer<Object> { | |
CALLS_REAL_METHODS(new Answer<>() {}), | |
RETURNS_SELF(new Answer<>() {}), | |
CUSTOM(null), | |
; | |
private Answer<Object> implementation; |
This file contains hidden or 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 | |
namespace AppBundle\Controller\HttpApi; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\{ | |
Request, | |
Response | |
}; |
This file contains hidden or 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 vax.input; | |
import com.badlogic.gdx.input.GestureDetector.GestureListener; | |
import com.badlogic.gdx.math.Vector2; | |
/** | |
@author toor | |
@param <T> | |
*/ |
This file contains hidden or 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 void filterContactPoints( btCollisionObject bco, btCollisionShape bcs ) { | |
if ( bcs instanceof btTriangleShape ) { | |
HashSet<btPersistentManifold> manifolds = manifoldMap.get( bco ); | |
for( btPersistentManifold bpm : manifolds ) { | |
if ( bpm.getNumContacts() == CONTACTS_TO_FILTER ) { // otherwise it's probably *not* an tri edge collision | |
bpm.removeContactPoint( | |
( bpm.getContactPoint( 0 ).getDistance() > bpm.getContactPoint( 1 ).getDistance() ) ? 0 : 1 ); | |
} | |
} | |
} |
This file contains hidden or 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
app.210804bf94c339fdac7b.js:2495 [Vue warn]: Error in render: "TypeError: c$1.elm.getBoundingClientRect is not a function" | |
found in | |
---> <TransitionGroup> | |
<AppMain> | |
<Root> | |
warn @ app.210804bf94c339fdac7b.js:2495 | |
logError @ app.210804bf94c339fdac7b.js:3613 | |
globalHandleError @ app.210804bf94c339fdac7b.js:3608 |
This file contains hidden or 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
#include <iostream> | |
#define _USE_MATH_DEFINES | |
#include <cmath> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
const int SCREEN_WIDTH = 800; | |
const int SCREEN_HEIGHT = 600; |
This file contains hidden or 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 vax.libgdx; | |
import java.io.*; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.files.FileHandle; | |
import com.badlogic.gdx.graphics.Color; | |
import com.badlogic.gdx.graphics.g3d.model.data.ModelMaterial; | |
import com.badlogic.gdx.graphics.g3d.model.data.ModelTexture; | |
import com.badlogic.gdx.utils.Array; | |
import com.badlogic.gdx.utils.ObjectMap; |
This file contains hidden or 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
/* | |
* ***************************************************************************** | |
Copyright 2011 See AUTHORS file. | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on |