Skip to content

Instantly share code, notes, and snippets.

@dginev
dginev / cpan Perlude log
Created September 5, 2011 17:20
Trying to install Perlude 0.50 through CPAN, Ubuntu 11.04
$ sudo cpan Perlude
CPAN: Storable loaded ok (v2.21)
Going to read '/home/dreamweaver/.cpan/Metadata'
Database was generated on Mon, 05 Sep 2011 16:29:51 GMT
Running install for module 'Perlude'
CPAN: YAML loaded ok (v0.73)
Running make for M/MA/MARCC/Perlude-0.50.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.027)
Checksum for /home/dreamweaver/.cpan/sources/authors/id/M/MA/MARCC/Perlude-0.50.tar.gz ok
BuiltinFunctions::ProhibitStringyEval
BuiltinFunctions::ProhibitStringySplit
BuiltinFunctions::ProhibitUniversalCan
BuiltinFunctions::ProhibitUniversalIsa
ClassHierarchies::ProhibitExplicitISA
ControlStructures::ProhibitMutatingListFunctions
ErrorHandling::RequireCarping
InputOutput::ProhibitBarewordFileHandles
InputOutput::ProhibitInteractiveTest
InputOutput::ProhibitOneArgSelect
@dginev
dginev / LaTeXML::Util::PackageKeywords .pm
Last active December 11, 2015 05:29
A first bare-bone Devel::Declare compiler for state-ful subroutines in LaTeXML bindings.
# /=====================================================================\ #
# | LaTeXML::Util::PackageKeywords | #
# | Binding package keywords for LaTeXML | #
# |=====================================================================| #
# | Part of LaTeXML: | #
# | Public domain software, produced as part of work done by the | #
# | United States Government & not subject to copyright in the US. | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <[email protected]> | #
# | Deyan Ginev <[email protected]> #_# | #
@dginev
dginev / Distinct Wikipedia Math Categories
Created April 21, 2013 04:50
The full list of NNexus-indexed categories of mathematical concepts on Wikipedia.org
Mathematical_concepts
Basic_concepts_in_set_theory
Mathematical_axioms
Algorithms
Mathematical_objects
Mathematical_structures
Mathematical_relations
Computer_algebra
Bioinformatics_algorithms
Classification_algorithms
@dginev
dginev / nnexus_glasses.user.js
Created April 24, 2013 23:17
NNexus Glasses - a handy Greasemonkey utility for seeing any web page through the eyes of NNexus
// ==UserScript==
// @name NNexus Glasses
// @namespace http://nnexus.mathweb.org
// @description Enables a NNexus auto-link pass over each page in the namespace
// @include http://dlmf.nist.gov/*
// ==/UserScript==
var body = document.getElementsByTagName("body")[0];
var markup = body.innerHTML;
var params = "body="+encodeURIComponent(markup);
// Localhost for now, expect support at http://nnexus.mathweb.org
---
state
continuous function
bounded
hyperplane
mean
---
continuous function
closed ball
@dginev
dginev / dev.html
Created July 2, 2013 17:46
Module meddler
<html>
<head>
<title>JOBAD v3 (CHAOS) Example Page</title>
<!-- This file has been generated automatically. Any changes will be overwritten. -->
<script src="./../../../js/deps/jquery/jquery-2.0.0.min.js"></script>
<script src="./../../../js/deps/jquery/jquery-ui-1.10.3.js"></script>
<script src="./../../../js/deps/underscore/underscore-min.js"></script>
@dginev
dginev / NQP make test
Last active December 20, 2015 16:19
NQP on JVM make test problems
prove t/jvm/* --verbose
...
not ok 31 - %d on bigint
# Actual value: <-6926948138105418752>
# Expected value: <77409228207421416473589288028833>
...
@dginev
dginev / mover.pl
Created August 15, 2013 03:39
A simple Perl mover that reorganizes a flat directory of TeX files into a CorTeX-compatible subdirectory organization.
# Mover.pl -- moves all foo.tex files in an input directory to
# a foo/foo.tex subdirectory
# 0. Dependencies
# Ensure sanity
use strict;
use warnings;
# File utilities
use File::Path qw/make_path/;
use File::Spec;
@dginev
dginev / DefMaths
Created September 1, 2013 19:55
LaTeXML's DefMath Lexicon
DefMath('\mathring{}', "\x{030A}", operator_role=>'OVERACCENT');
DefMathI('\arrowvert', undef, "|", role=>'VERTBAR');
DefMathI('\Arrowvert', undef, "\x{2225}",role=>'VERTBAR');
DefMathI('\cdotp', undef,"\x{22C5}", role=>'MULOP');
DefMathI('\ldotp', undef,".", role=>'MULOP');
DefMathI('\intop', undef,"\x{222B}", role=>'INTOP', meaning=>'integral',
DefMathI('\ointop', undef,"\x{222E}", role=>'INTOP', meaning=>'contour-integral',
DefMathI('\mapstochar', undef,"\x{21A6}", role=>'ARROW', meaning=>'maps-to');
DefMathI('\owns', undef,"\x{220B}", role=>'RELOP', meaning=>'contains');
DefMath('\circledbar', "\x{29B6}");