Skip to content

Instantly share code, notes, and snippets.

Peter Jakobsen pjakobsen

Block or report user

Report or block pjakobsen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pjakobsen
pjakobsen / pyffmpeg_error
Created Aug 30, 2013
Compile Error pyffmpeg
View pyffmpeg_error
pyffmpeg.c:22519:40: warning: implicit declaration of function '__pyx_convert__from_py_AVRational' is invalid in C99 [-Wimplicit-function-declaration]
__pyx_v_8pyffmpeg_AV_TIME_BASE_Q = __pyx_convert__from_py_AVRational(o); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1946; __pyx_clineno = __LINE__; goto __pyx_L2_error;};
^
pyffmpeg.c:22519:38: error: assigning to 'struct AVRational' from incompatible type 'int'
__pyx_v_8pyffmpeg_AV_TIME_BASE_Q = __pyx_convert__from_py_AVRational(o); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1946; __pyx_clineno = __LINE__; goto __pyx_L2_error;};
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 warnings and 3 errors generated.
error: Command "clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wa
@pjakobsen
pjakobsen / Code.ipynb
Last active Jan 28, 2016
Testing running iPython Notebook
View Code.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.py
#!/usr/bin/env python
# implement the example graphs/integral from pyx
from pylab import *
from matplotlib.patches import Polygon
def func(x):
return (x-3)*(x-5)*(x-7)+85
ax = subplot(111)
View index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<div id="d3_line"></div>
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
You can’t perform that action at this time.