Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Dembia chrisdembia

  • Stanford University
  • Stanford, CA
View GitHub Profile
View pa3p18.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 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 Apr 25, 2014
Create Nabeel's fancy Doxygen
View 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
pydy.viz json for double pendulum
View data.json
{
"name": "unnamed",
"lights": [
{
"color": [
1.0,
1.0,
1.0
],
"simulation_matrix": [
@chrisdembia
chrisdembia / cens_fit_data.py
Last active Aug 29, 2015
ee364a_hw4_prob5p13.py
View cens_fit_data.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 Aug 29, 2015
testAssemblySolver log
View 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 Jul 17, 2014
opensim-core valgrind
View testInitState
<?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"
View CMakeLists.txt
# 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 Oct 10, 2014
Ajay: templatized in-class member initializers
View main.cpp
#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 Aug 29, 2015
opensim-4.0-targets
View c3d
int main() {
InverseKinematics("c3d");
}