Skip to content

Instantly share code, notes, and snippets.

@mitya57
mitya57 / mathjax-error-test.html
Created August 30, 2012 14:09
HTML after MathJax processing
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/x-mathjax-config;executed=true">
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Startup",function () {
var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
HTMLCSS.Font.checkWebFont = function (check,font,callback) {
if (check.time(callback)) return;
if (check.total === 0) {
HTMLCSS.Font.testFont(font);
setTimeout(check,200);
@jiewmeng
jiewmeng / MathJaxMarkdownEditor.coffee
Created August 31, 2012 13:45
MathJax/Markdown Editor in CoffeeScript
define [
"marked",
"jquery",
"mathjax"
], (marked, $, MathJax) ->
# see: http://cdn.mathjax.org/mathjax/latest/test/sample-dynamic-2.html
class MathJaxMarkdownEditor
inputName: "#editor"
@kianwilcox
kianwilcox / gist:3628288
Created September 5, 2012 00:01
Calculator view in RubyMotion
class Calculator < UIView
attr_accessor :entryView
attr_accessor :stepView
attr_accessor :keyboardView
attr_accessor :current_problem
attr_accessor :nextInput
attr_accessor :hint
attr_accessor :reveal
attr_accessor :explain
@monofon
monofon / index.html
Created September 17, 2012 04:37
Using remark with jQuery and MathJax
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- Use remark, jQuery and MathJax -->
<script src="https://github.com/downloads/gnab/remark/remark-0.3.6.min.js"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&delayStartupUntil=configured"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>moments -- Sage</title>
<link type="text/css" rel="stylesheet" href="/css/main.css" />
@satomacoto
satomacoto / mathjax.html
Created November 29, 2012 06:15
MathJax Dynamic Math Test Page
<!DOCTYPE html>
<!-- http://docs.mathjax.org/en/v1.1-latest/typeset.html -->
<html>
<head>
<meta charset="utf-8">
<title>MathJax Dynamic Math Test Page</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["$","$"],["\\(","\\)"]]
@HungMingWu
HungMingWu / _config.yaml.diff
Created December 7, 2012 08:36
Latex on Octopress
index 1a06ae2..ef440ea 100644
--- a/_config.yml
+++ b/_config.yml
@@ -33,7 +33,7 @@ destination: public
plugins: plugins
code_dir: downloads/code
category_dir: blog/categories
-markdown: rdiscount
+markdown: kramdown
pygments: false # default python pygments have been replaced by pygments.rb
@phck
phck / byword.mmd
Created December 9, 2012 17:12
You can add Latex-style equations by including MathJax at the beginning of the file:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / howto_setup_landslide.md
Created December 11, 2012 09:54
How to setup `landslide` to work with LaTeX rendering

How to setup landslide to work with LaTeX rendering

This short howto is intended to be a mental note for myself so I don't have to spend all the wasted hours that took me to figure out howto get landslide up and running and beautifully displaying LaTeX on the slides. If you find it useful, good for you ;-)


Disclaimer

@Carreau
Carreau / kernel.js
Created December 13, 2012 20:09
A node.js kernel for IPython notebook. You can see the explanation of the ipynb rendered in http://nbviewer.ipython.org
zmq = require("zmq")
fs = require("fs")
var config = JSON.parse(fs.readFileSync(process.argv[2]))
var connexion = "tcp://"+config.ip+":"
var shell_conn = connexion+config.shell_port
var pub_conn = connexion+config.iopub_port
var hb_conn = connexion+config.hb_port