I hereby claim:
- I am embiem on github.
- I am mbeierling (https://keybase.io/mbeierling) on keybase.
- I have a public key ASDa9PSKmSTOIZzmhEuvoxEDmsFWWOSGXC3PkpQcPls6pQo
To claim this, I am signing this object:
bool GetLookDirection(FVector2D ScreenLocation, FVector& LookDirection) const | |
{ | |
FVector CameraWorldLocation; | |
return DeprojectScreenPositionToWorld( | |
ScreenLocation.X, | |
ScreenLocation.Y, | |
CameraWorldLocation, | |
LookDirection | |
); | |
} |
''' | |
Very basic Q-Learner that is tailored for the cart-pole environment. | |
This implementation leaves a lot of space for improvements. | |
''' | |
import gym | |
from gym import wrappers | |
import math |
.tags-input { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
align-content: flex-start; | |
justify-content: center; | |
} | |
.tags-input .tag-entry { | |
user-select: none; | |
cursor: pointer; |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class DynamicScale : MonoBehaviour | |
{ | |
Vector3 lastPosition; | |
void Start() | |
{ | |
lastPosition = transform.position; |
const puppeteer = require('puppeteer'); | |
const width = 1200; | |
const url = process.argv.length > 2 ? process.argv[2] : 'https://ea.com'; | |
const screenshotPath = process.argv.length > 3 ? process.argv[3] : 'screenshot.png'; | |
console.log(`${url} --> ${screenshotPath}`); | |
(async () => { | |
const browser = await puppeteer.launch(); | |
try { |
bool GetSightRayHitLocation(FVector& HitLocation) const | |
{ | |
// Find crosshair position in pixel coordinates | |
int32 ViewportSizeX, ViewportSizeY; | |
GetViewportSize(ViewportSizeX, ViewportSizeY); | |
FVector2D ScreenLocation = FVector2D(ViewportSizeX * CrossHairXLocation, ViewportSizeY * CrossHairYLocation); | |
// "De-project" the screen position of the crosshair to a world direction | |
FVector LookDirection, LookStartLocation; |
.monaco-shell { | |
font-family: "Operator Mono", "Inconsolata", monospace; | |
} | |
/* | |
Fat Cursor. | |
This overwrites the "underline thin" style since that is one that can be styled with CSS | |
So set your settings to: | |
"editor.cursorStyle": "underline-thin", | |
*/ |
I hereby claim:
To claim this, I am signing this object: