Skip to content

Instantly share code, notes, and snippets.

View ramnathv's full-sized avatar

Ramnath Vaidyanathan ramnathv

View GitHub Profile
@ramnathv
ramnathv / mathjax.html
Created July 29, 2012 21:00
Mathjax Fallback
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="{{ url.mathjax }}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')</script>
<slide class="{{ classes }}" id="{{ id }}">
<hgroup>
{{{ header}}}
</hgroup>
<article>
{{{ content }}}
</article>
</slide>
@ramnathv
ramnathv / knitr_example.R
Last active October 7, 2015 22:39
knitr with Examples
require(tools)
help_geom = grep('/geom_.*$', Rd_db('ggplot2'))
db = Rd_db('ggplot2')
geoms = lapply(db[grepl('/geom_.*$', names(db))], function(g){
capture.output(Rd2ex(g))
}
require(tools)
Rdx = Rd_db('ggplot2')
@ramnathv
ramnathv / problems.md
Created August 17, 2012 19:06
Metadata and Content Components of Questions

D2L Question Components

Metadata

  1. points
  2. difficulty
  3. tags

Content

@ramnathv
ramnathv / khan-ex.html
Created August 24, 2012 02:43
Khan Academy Exercise Structure
<!DOCTYPE html>
<html data-require="math">
<head>
<title>Name of Your Exercise</title>
<script src="../khan-exercise.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<!-- Your variables in here... -->
@ramnathv
ramnathv / exercises.html
Created September 1, 2012 11:07
Exercise Components
<div class="problems">
<div id="problem-type-or-description">
<div class="variables"><!-- Define variables for the problem --></p>
<p class="problem"><!-- An overview of the problem including all needed info. --></p>
<p class="question"><!-- The question to ask the student. --></p>
<p class="solution"><!-- The correct answer expected of the student. --></p>
<ul class="choices"><!-- Choices for the solutions as a list --></ul>
<div class="hints"><!-- Provide list of hints --></div>
</div>
</div>
@ramnathv
ramnathv / ggplotJrnold.md
Created September 11, 2012 12:36
ggplotJrnold Log
Installing github repo(s) ggplotJrnold/master from jrnold
Installing ggplotJrnold.zip from https://github.com/jrnold/ggplotJrnold/zipball/master
Installing ggplotJrnold
* checking for file '/private/var/folders/LQ/LQU9qgwRE7urFCmDeiUPHE+++TI/-Tmp-/RtmpF5ThTr/jrnold-ggplotJrnold-332dad2/DESCRIPTION' ... OK
* preparing 'ggplotJrnold':
* checking DESCRIPTION meta-information ... OK
* installing the package to process help pages
* saving partial Rd database
* checking for LF line-endings in source and make files
@ramnathv
ramnathv / polleverywhere.html
Created September 19, 2012 05:50
Embed Elements in Deck
<script language="javascript" type="text/javascript"
src="http://www.polleverywhere.com/polls/LTM4NDQ3OTM5Mw/chart_widget.js?height=600&results_count_format=percent&width=960" >
</script>
@ramnathv
ramnathv / automate_ghpages.md
Created October 4, 2012 19:10
Automating Github Pages Workflow

Problem

You have git repository with the following directory structure

myproject
|- source
|- docs
|- README.md
@ramnathv
ramnathv / hero-rendered.html
Created October 5, 2012 14:37
rJekyll with Support for Content Blocks
<div class="hero-unit">
<h1>Business Statistics</h1>
<p>This course is aimed at introducing students to basic concepts in statistics</p>
<p><a class="btn btn-primary btn-large">Learn &raquo;</a></p>
</div>