This file contains 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:d7454350e8574bbb2d317221e2bcdea00fd12b8579a7168fea3b30a93785dc20" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains 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
#!/usr/bin/env python | |
## | |
# find_package.py: Locates Python modules and generates LaTeX commands. | |
## | |
# Christopher Granade (cgranade@cgranade.com). Committed to the public | |
# domain (17 Dec 2014), but please cite/acknowledge/pass along if this is | |
# useful to you. | |
## | |
r""" |
This file contains 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
// ==UserScript== | |
// @name Link arXiv → SciRate | |
// @namespace http://www.cgranade.com/ | |
// @version 0.1 | |
// @description Adds links to SciRate from arXiv papers. | |
// @match http://arxiv.org/abs/* | |
// @copyright 2015+, You | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js | |
// ==/UserScript== |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |
This file contains 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
(*Suppose that data is stored in a CSV-like format, with newline-delimted rows of comma-separated fields.*) | |
StringSplit[#, ","]& /@ StringSplit["a,b,c\nd,e,f", "\n"] | |
(*If certain fields are missing, then let's suppose this is represented by an empty string as the contents for that field.*) | |
StringSplit[#, ","]& /@ StringSplit["a,,c\nd,e,f", "\n"] | |
(*This is inconvienent, so let's write a function to parse that as the special values Missing[].*) | |
MarkMissingValues[dataStr_] := Map[ | |
Function[row, StringSplit[row, ","]], | |
StringSplit[dataStr, "\n"] |
This file contains 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[aps,pra,twocolumn,superscriptaddress,nofootinbib]{revtex4-1} | |
%============================================================================= | |
% BEGIN UNFORGIVABLE HACKS | |
%============================================================================= | |
\makeatletter | |
\def\@bibdataout@aps{% | |
\immediate\write\@bibdataout{% | |
@CONTROL{% | |
apsrev41Control,author="08",editor="1",pages="0",title="0",year="1"% |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.