This is a small modification of [http://cvxopt.org/applications/nucnrm/] for Python3 & CVXOPT. As the comment says, this program was originally written by Z. Liu and L. Vandenberghe, and it distributed under GPL.
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 rbboxTest | |
| % Generating example 2-D plot | |
| hfig = figure; | |
| hax = axes; | |
| xdata = 1:100; | |
| ydata = sin(xdata); | |
| hline = line(xdata,ydata,'Marker','o'); | |
| set(hax,'ButtonDownFcn',@OnClickAxes); |
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
| # Two very basic functions for searching just the input code of an IPython notebook | |
| # Written because I often want to search notebooks for snippets but the giant output | |
| # of embedded encoded images makes it difficult. | |
| # Ipython's nbconvert can be used to extract just the input, but this requires | |
| # writing to a separate file and can be quite slow when used with large notebooks. | |
| # Additionally, find/xargs can be used with igrep when the name of the notebook isn't known. | |
| # icat could be used to convert an IPython notebook to a standard python file if | |
| # the notebook does not contain whole-cell magics. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/scatterplot-with-shapes |
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
| \documentclass{article} | |
| \usepackage{tikz} | |
| \begin{document} | |
| \begin{tikzpicture} | |
| \node (theta) at (0,0) [circle, draw] {$\theta$}; | |
| \node (z) at (2,0) [circle, draw] {$z$}; | |
| \node (w) at (4,0) [circle, draw] {$w$}; | |
| \node (alpha) at (1,2) [circle, draw] {$\alpha$}; |
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
| """ | |
| (C) Mathieu Blondel - 2010 | |
| License: BSD 3 clause | |
| Implementation of the collapsed Gibbs sampler for | |
| Latent Dirichlet Allocation, as described in | |
| Finding scientifc topics (Griffiths and Steyvers) | |
| """ |
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
| It is a rite of passage to post one's successful build instructions for OpenCV on a Mac | |
| after you've tried all the other conflicting instructions out there and still failed. | |
| brew failed for me (was this because I could never get a happy brew doctor situation? | |
| I'll never know). macports? nope. build-from-source recipes? I didn't find one that | |
| worked for me. | |
| Here's what did work to build OpenCV 2.4.5 from the distribution tarball using cmake, | |
| on Mac OSX 10.8.4, linked to an anaconda installation rather than the system python. | |
| It is a mashup of various bits of advice out there. If you're already comfortable with | |
| build/install from source, all you need to read is the cmake invocation in step 3 and |
I'm writing this up from memory, so errors may appear.
This has been updated to use SHA256 certificates.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
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
| # set up flags for Numpy C extentions compiling | |
| export CFLAGS="-arch i386 -arch x86_64" | |
| export FFLAGS="-m32 -m64" | |
| export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
| export CC=gcc-4.2 | |
| export CXX="g++ -arch i386 -arch x86_64" | |
| pip install numpy | |
| # success! |
OlderNewer