Skip to content

Instantly share code, notes, and snippets.

View realityforge's full-sized avatar

Peter Donald realityforge

View GitHub Profile
@realityforge
realityforge / Minimal-5.2.uproject
Created September 3, 2023 21:58 — forked from MilkyEngineer/Minimal-5.2.uproject
Minimal project descriptor that "Disables Engine Plugins by Default" for Unreal Engine
{
"FileVersion": 3,
"EngineAssociation": "5.2",
"Description": "Minimum viable plugin dependencies for a usable Unreal Engine project",
"DisableEnginePluginsByDefault": true,
"Plugins": [
{
"Name": "PluginBrowser",
"Enabled": true
},
@realityforge
realityforge / ExportFBX.py
Created April 28, 2023 07:32 — forked from timborrelli/ExportFBX.py
FBX Animation Exporter from Mesh Selection
import maya.cmds as cmds
import os as os
import maya.mel as mel
# Description
# This tool will export selected mesh(es) as an FBX
# It will name each export the same as the Maya file you export from, but with the character's namespace replacing the first part of the file name.
# File naming is expected to be "<name of character>_alltheothershit.extension" like "male_idleToWalk.ma"
@realityforge
realityforge / gwt-formatter.js
Created August 31, 2021 06:33 — forked from rdeangelis83/gwt-formatter.js
DevtoolsFormatter for GWT
JsonMLFormatter = function(simpleFormatter)
{
this._simpleFormatter = simpleFormatter;
}
JsonMLFormatter.prototype = {
header: function(object, config)
{
var c = this._simpleFormatter.preview(object);
@realityforge
realityforge / servlet.java
Created February 13, 2021 06:36
Example of doGetSerializationPolicy implementation
@Override
protected com.google.gwt.user.server.rpc.SerializationPolicy doGetSerializationPolicy( @javax.annotation.Nonnull final javax.servlet.http.HttpServletRequest request,
@javax.annotation.Nonnull final String moduleBase,
@javax.annotation.Nonnull final String strongName )
{
java.net.URL moduleBaseURL = null;
if ( null != moduleBase )
{
try
Full thread dump
"qtp1101625662-61" #61 prio=5 os_prio=31 tid=0x00007fcd78195000 nid=0xee0b waiting on condition [0x000070000e1b7000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x0000000796d09ea0> (a java.util.concurrent.FutureTask)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
at java.util.concurrent.FutureTask.get(FutureTask.java:191)
at com.google.gwt.dev.codeserver.JobRunner.getRecompileJs(JobRunner.java:71)

Everything I Know About UI Routing

Definitions

  1. Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
    1. pathname - The "file/directory" portion of the URL, like invoices/123
    2. search - The stuff after ? in a URL like /assignments?showGrades=1.
    3. query - A parsed version of search, usually an object but not a standard browser feature.
    4. hash - The # portion of the URL. This is not available to servers in request.url so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.
    5. state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.
@realityforge
realityforge / Notes.md
Created November 4, 2019 01:37
Making react4j-todomvc j2cl compatible

How to build

First you need to install updated build tools that does not copy the */public/ assets into the directory used by j2cl compile. To install build tools locally do:

> git clone https://github.com/realityforge/j2cl.git
> cd j2cl
> git checkout NoCopyPublicAssets
> mvn clean install
@realityforge
realityforge / externalize.rb
Last active February 5, 2019 23:48
Setup a git repository master that points at actual repository
PROJECT_NAME='jsinterop-generator'
PROJECT_SLUG='jsinterop-generator'
UPSTREAM_OWNER='google'
LOCAL_OWNER='realityforge'
LOCAL_BRANCHES_TO_KEEP=%w(TravisCiIntegration)
#WARNING this will delete local branches which may contain your changes
DELETE_LOCAL_BRANCHES=true
def mysystem(command, fail_on_error = true)
@realityforge
realityforge / diff.sh
Created June 27, 2017 03:06
Git diff excluding vendor dir
git diff . ':(exclude)vendor/*'
MAX_BUILDS = 5
MAX_ENV_BUILDS = 2
Jenkins.instance.getAllItems(org.jenkinsci.plugins.workflow.job.WorkflowJob.class).each { it ->
def job = Jenkins.instance.getItemByFullName(it.fullName, Job.class)
def limit = (it.fullName =~ /^environment/) ? MAX_ENV_BUILDS : MAX_BUILDS
def recent = job.getBuilds().limit(limit)
println "Processing job " + it.fullName + " " + it.class + " BuildCount: " + job.getBuilds().size() + " Limit: " + limit