Skip to content

Instantly share code, notes, and snippets.

Leonid Shifrin lshifr

Block or report user

Report or block lshifr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lshifr
lshifr / Test2.m
Created Nov 25, 2012
Simple test project with one package and a project.m file, where the package name does not correspond to the name of the project
View Test2.m
BeginPackage["Test2`"]
g[x_]:=x^3;
EndPackage[]
@lshifr
lshifr / project.m
Created Nov 25, 2012
A simple test project with malformed project file
View project.m
{
"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",
View LocalDataExtrema.m
(* 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 Dec 12, 2012
Simple object-oriented extension for Mathematica
View LICENSE
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 Dec 12, 2012
A generic object implementing operations on trees of rules for Mathematica
View RuleTreeInfo.m
(* Mathematica Package *)
BeginPackage["RuleTreeInfo`", { "OO`"}]
(* Exported symbols added here with SymbolName::usage *)
RuleTreeInfo;
Begin["`Private`"] (* Begin Private Context *)
@lshifr
lshifr / GithubGistClient.m
Created Dec 12, 2012
A Mathematica client for Github gists
View GithubGistClient.m
(* 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 Dec 12, 2012
A Mathematica package for run-time manipulations with Mathematica packages
View PackageManipulations.m
(* ::Package:: *)
(*......................................................................*)
(* :Title: PackageManipulations *)
(* :Author: Leonid B.Shifrin *)
@lshifr
lshifr / FileInfo.m
Created Dec 15, 2012
A data type to simplify in-memory operations with project's files (and generally files in a directory)
View FileInfo.m
(* 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 Dec 18, 2012
An object to manage project.m files for Github gist-based Mathematica projects
View GithubGistProjectInfo.m
(* 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 Dec 19, 2012
Simple version control system for Mathematica projects hosted on Github via Github gists
View RawVCS.m
(* 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 *)
You can’t perform that action at this time.