This file contains hidden or 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
| # coding: utf-8 | |
| # In[1]: | |
| from __future__ import print_function, division | |
| from sympy import symbols, simplify | |
| import sympy.physics.mechanics as mech | |
| # import dynamicsymbols, ReferenceFrame, Point, Particle | |
| # from sympy import symbols, atan, Matrix, solve |
This file contains hidden or 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
| MacBook-Pro-2:or-tools XXXXX$ ccmake . | |
| MacBook-Pro-2:or-tools XXXXX$ make | |
| [ 2%] Built target gflags_project | |
| [ 4%] Built target glog_project | |
| [ 6%] Built target Protobuf_project | |
| [ 9%] Built target CoinUtils_project | |
| [ 11%] Built target Osi_project | |
| [ 13%] Built target Clp_project |
This file contains hidden or 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
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>multilinegraph</title> | |
| <meta name="generator" content="TextMate http://macromates.com/"> | |
| <meta name="author" content="Martin West"> | |
| <!-- Date: 2012-09-26 --> | |
| </head> | |
| <style> |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Interactive Line Graph</title> | |
| <script src="http://d3js.org/d3.v2.js"></script> | |
| <!-- | |
| using JQuery for element dimensions | |
| This is a small aspect of this example so it can be removed fairly easily if needed. | |
| --> | |
| <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
| <script src="sample_data.js"></script> |
This file contains hidden or 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
| function Gauge(placeholderName, configuration) | |
| { | |
| this.placeholderName = placeholderName; | |
| var self = this; // some internal d3 functions do not "like" the "this" keyword, hence setting a local variable | |
| this.configure = function(configuration) | |
| { | |
| this.config = configuration; |
This file contains hidden or 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
| // | |
| // This server will start a bash shell and expose it | |
| // over socket.io to a browser. See ./term.html for the | |
| // client side. | |
| // | |
| // You should probably: | |
| // | |
| // npm install socket.io | |
| // curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
| // |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
| <script src="client/socket.io.js" type="text/javascript" charset="utf-8"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| var socket = new io.Socket(null, {rememberTransport: false, port: 8080}); | |
| socket.connect(); | |
| socket.addEvent('message', function(data) { | |
| $('body').append('<p>' + $.map(data, function(e,i) { |