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 / 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 / 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 / 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 / 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 / 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 / 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 / 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"
# Generic CMakeLists.txt for making a Simbody-using executable.
# This shows how to use the provided SimbodyConfig.cmake to locate a Simbody
# installation on your machine so you can use it from your own code.
# You will most likely want to copy some of these lines into your own
# CMakeLists.txt rather than use this one verbatim.
cmake_minimum_required(VERSION 2.8)
project(cloneptr)
# List your source and header files here.
set(my_source_files cloneptr.cpp)
@chrisdembia
chrisdembia / main.cpp
Created October 10, 2014 19:23
Ajay: templatized in-class member initializers
#include <iostream>
#include <vector>
template <int M>
class myvec {
public:
std::vector<double> v;
myvec(double iv) : v(M, iv) {}
};
@chrisdembia
chrisdembia / c3d
Last active August 29, 2015 14:22
opensim-4.0-targets
int main() {
InverseKinematics("c3d");
}