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
object CracklePop { | |
def cracklePop(start: Integer, end: Integer): Unit = { | |
val cracklePopStr = new StringBuilder() | |
if (start % 3 == 0) { | |
cracklePopStr.append("Crackle") | |
} |
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
import PIL.ImageOps | |
import numpy as np | |
import cv2 | |
from PIL import Image | |
from PIL.ImageOps import invert | |
from scipy.misc import imread | |
from matplotlib import pyplot as plt | |
from scipy.misc import imsave | |
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
import os | |
import time | |
import shutil | |
import random | |
import heapq | |
def remove_file(f): | |
if os.path.exists(f): | |
os.remove(f) |
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
<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"/> |