Skip to content

Instantly share code, notes, and snippets.

<mujoco model="01 Humanoids">
<option timestep="0.005" solver="Newton" iterations="1" ls_iterations="4">
<flag eulerdamp="disable"/>
</option>
<custom>
<numeric data="4" name="max_contact_points"/>
</custom>
<mujoco model="01 Humanoids">
<option timestep="0.005" solver="Newton" iterations="1" ls_iterations="4">
<flag eulerdamp="disable"/>
</option>
<custom>
<numeric data="4" name="max_contact_points"/>
</custom>
@erikfrey
erikfrey / brax_a1.xml
Last active April 21, 2023 18:38
unitree a1 from mujoco menagerie modified for brax
<mujoco model="a1">
<compiler angle="radian" meshdir="assets" texturedir="assets" autolimits="true"/>
<!-- brax doesn't support eliptic friction -->
<option impratio="100"/>
<default>
<default class="a1">
<geom friction="0.6" margin="0.001"/>
<joint axis="0 1 0" damping="2" armature="0.01" frictionloss="0.2"/>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
visualization not supported
visualization not supported
visualization not supported
visualization not supported
Loading ../models/model_ho_female_5_reduced.pkl
MODEL model_ho_female_5_reduced
GENDER female
loading ../MPI-FAUST/test/scans/test_scan_033.ply
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/coo.py:200: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`.
if np.rank(self.data) != 1 or np.rank(self.row) != 1 or np.rank(self.col) != 1:
# skip intro
startup_message off
# print wackier status messages
nethack on
caption string "%?%F%{= Bk}%? %C%A %D %d-%m-%Y %{= kB} %t%= %?%F%{= Bk}%:%{= wk}%? %n "
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
@erikfrey
erikfrey / gist:4773523
Created February 12, 2013 21:23
path format
{
"left_pkey": ["ENTITY/PERSON/48812/J._J._Abrams"],
"right_pkey": ["the remake of ENTITY/WORK/1168041/Star_Trek_-LRB-film-RRB-"],
"rel": "<person> direct <work>",
"subpaths":
[
{
"rel": "on <date>",
"pkey": "ENTITY/DATE/201303"
},
say 💩
from itertools import combinations, product
LOW = 1
HIGH = 40
REFERENCE_WEIGHT_COUNT = 4
def has_solution(object_weight, reference_weights):
"""returns True if there is a way to use the reference weights to correctly identify the object weight"""
guess_range = [LOW, HIGH] # >= low, <= high
# we take reference weight and a sign (+/-): + means on the right side of the scale, - means on the left
package org.maltparser.core.config;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import org.maltparser.core.exception.MaltChainedException;
import org.maltparser.core.flow.FlowChartInstance;
import org.maltparser.core.flow.item.ChartItem;
import org.maltparser.core.flow.spec.ChartItemSpecification;