Skip to content

Instantly share code, notes, and snippets.

@lshifr
lshifr / Test2.m
Created November 25, 2012 14:39
Simple test project with one package and a project.m file, where the package name does not correspond to the name of the project
BeginPackage["Test2`"]
g[x_]:=x^3;
EndPackage[]
@lshifr
lshifr / project.m
Created November 25, 2012 14:42
A simple test project with malformed project file
{
"author"->
{
"name" -> "Leonid Shifrin",
"email" -> "lshifr@gmail.com",
"url" -> "http://www.mathprogramming-intro.org"
},
"name" -> "Test1",
"Description"-> "Simple test project for the installer",
"url" -> "https://gist.github.com/gists/4143767/download",
@lshifr
lshifr / LocalDataExtrema.m
Created December 8, 2012 01:19
New description
(* Mathematica package *)
BeginPackage["LocalDataExtrema`"]
(* Test version: 1.0.0 *)
PositionsOfLocalMinimum::usage = "PositionsOfLocalMinimum[lst] returns a list of poistions of local minima in lst";
Begin["`Private`"]
@lshifr
lshifr / LICENSE
Created December 12, 2012 08:35
Simple object-oriented extension for Mathematica
Copyright (c) 2012 Leonid Shifrin
This project is licensed under the MIT license,
http://opensource.org/licenses/MIT
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
@lshifr
lshifr / RuleTreeInfo.m
Created December 12, 2012 09:59
A generic object implementing operations on trees of rules for Mathematica
(* Mathematica Package *)
BeginPackage["RuleTreeInfo`", { "OO`"}]
(* Exported symbols added here with SymbolName::usage *)
RuleTreeInfo;
Begin["`Private`"] (* Begin Private Context *)
@lshifr
lshifr / GithubGistClient.m
Created December 12, 2012 11:23
A Mathematica client for Github gists
(* Mathematica Package *)
BeginPackage["GithubGistClient`"]
(* Exported symbols added here with SymbolName::usage *)
(* TODO:
1. Make this OO
2. Get rid of curl
@lshifr
lshifr / PackageManipulations.m
Created December 12, 2012 11:53
A Mathematica package for run-time manipulations with Mathematica packages
(* ::Package:: *)
(*......................................................................*)
(* :Title: PackageManipulations *)
(* :Author: Leonid B.Shifrin *)
@lshifr
lshifr / FileInfo.m
Created December 15, 2012 20:10
A data type to simplify in-memory operations with project's files (and generally files in a directory)
(* Mathematica Package *)
BeginPackage["FileInfo`", {"OO`","OO`Methods`","OO`Errors`", "RuleTreeInfo`"}]
(* Exported symbols added here with SymbolName::usage *)
FileInfo;
Begin["`Private`"] (* Begin Private Context *)
join = Function[{dir, file}, FileNameJoin[{dir, file}]];
@lshifr
lshifr / GithubGistProjectInfo.m
Created December 18, 2012 16:59
An object to manage project.m files for Github gist-based Mathematica projects
(* Mathematica Package *)
BeginPackage["GithubGistProjectInfo`", { "RuleTreeInfo`", "OO`", "OO`Methods`", "OO`Errors`"}]
(* Exported symbols added here with SymbolName::usage *)
GithubGistProjectInfo;
Begin["`Private`"] (* Begin Private Context *)
join = Function[{dir, file}, FileNameJoin[{dir, file}]];
@lshifr
lshifr / RawVCS.m
Created December 19, 2012 02:42
Simple version control system for Mathematica projects hosted on Github via Github gists
(* Mathematica Package *)
BeginPackage["RawVCS`", { "RuleTreeInfo`", "GithubGistClient`", "FileInfo`", "GithubGistProjectInfo`", "OO`", "OO`Methods`", "OO`Errors`"}]
(* Exported symbols added here with SymbolName::usage *)
RawVCS;
Begin["`Private`"] (* Begin Private Context *)