Skip to content

Instantly share code, notes, and snippets.

View garyfeng's full-sized avatar

Gary Feng garyfeng

  • Educational Testing Service
  • United States
View GitHub Profile
@garyfeng
garyfeng / Benchmark Data Backend
Last active February 2, 2020 01:31
System Diagrams for Benchmark
%% This is the source for Mermaid diagram generator
%% Open https://mermaid-js.github.io/mermaid-live-editor, and paste in this content to the editor window on the left
graph TD
subgraph Data Topics
D1([Observables])
D2([Responses])
D3([Diagnostics])
D1 --> UX4
D2 --> UX4

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer

@Thell
Thell / Exmple.Rmd
Created June 20, 2013 23:59
R markdown to illustrate creation of in-document referencing for chunks, sections, pages, and such.
```{r setup, echo=FALSE, results='hide'}
chunkref <- local({
function(chunklabel) {
sprintf('[%s](#%s)', chunklabel, chunklabel )
}
})
secref <- local({
function(seclabel) {
sprintf('[%s](#%s)', seclabel, seclabel )
@orjanv
orjanv / make.bat
Created October 29, 2012 16:23
Ammended latexpdf option to Command file for Sphinx documentation after installing Texlive for Windows
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
@gleuch
gleuch / gist:2475825
Created April 24, 2012 02:58
Javascript documentfragment to string (w/ text selection)
// selection range
var range = window.getSelection().getRangeAt(0);
// plain text of selected range (if you want it w/o html)
var text = window.getSelection();
// document fragment with html for selection
var fragment = range.cloneContents();
// make new element, insert document fragment, then get innerHTML!