Skip to content

Instantly share code, notes, and snippets.

View chrisdembia's full-sized avatar

Christopher Dembia chrisdembia

  • Stanford University
  • Stanford, CA
View GitHub Profile
@chrisdembia
chrisdembia / testInitState
Created July 17, 2014 22:20
opensim-core valgrind
<?xml version="1.0" encoding="UTF-8"?>
<Site BuildName="Linux-c++"
BuildStamp="20140717-2140-Experimental"
Name="FITZE-M92p"
Generator="ctest-2.8.11.2"
CompilerName="/usr/bin/c++"
OSName="Linux"
Hostname="FITZE-M92p"
OSRelease="3.11.0-23-generic"
OSVersion="#40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014"
@chrisdembia
chrisdembia / testAssemblySolver.log
Last active August 29, 2015 14:02
testAssemblySolver log
UpdateCTestConfiguration from :/home/fitze/repos/opensim/opensim-core-build/DartConfiguration.tcl
Parse Config file:/home/fitze/repos/opensim/opensim-core-build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/fitze/repos/opensim/opensim-core-build/DartConfiguration.tcl
Parse Config file:/home/fitze/repos/opensim/opensim-core-build/DartConfiguration.tcl
Test project /home/fitze/repos/opensim/opensim-core-build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 17
@chrisdembia
chrisdembia / cens_fit_data.py
Last active August 29, 2015 14:01
ee364a_hw4_prob5p13.py
import numpy as np
import numpy.matlib as ml
# data for censored fitting problem.
np.random.seed(0)
n = 20 # dimension of x's
M = 25 # number of non-censored data points
K = 100 # total number of points
c_true = ml.randn(n, 1)
@chrisdembia
chrisdembia / data.json
Created May 9, 2014 16:22
pydy.viz json for double pendulum
{
"name": "unnamed",
"lights": [
{
"color": [
1.0,
1.0,
1.0
],
"simulation_matrix": [
@chrisdembia
chrisdembia / fancy_doxygen
Created April 25, 2014 01:58
Create Nabeel's fancy Doxygen
cd into build directory
npm install (which looks for package.xml)
node server.js runs localhost:8080
doxygen http://stackoverflow.com/questions/3007253/send-post-xml-file-using-curl-command-line
http://www.doxygen.nl/extsearch.html
create searchdata.xml and flip back the option
DELETE SI directory first: this populates the SI directory
curl POST -X searchdata.xml http://localhost:8080
@chrisdembia
chrisdembia / pa4p1.ipynb
Created February 7, 2014 19:53
pa4p1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrisdembia
chrisdembia / pa3p18.ipynb
Last active August 29, 2015 13:55
pa3p18.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrisdembia
chrisdembia / visualization.py
Last active December 18, 2015 22:09
PyDy Visualization API sketching
# I hope all objects have a name property; very helpful for debugging, and just in general.
class Visualization(object):
def __init__(self, name):
pass
@property
def scene(self):
@chrisdembia
chrisdembia / arkor.java
Created January 24, 2012 19:29
battlecodearkor
hello