Skip to content

Instantly share code, notes, and snippets.

View manpages's full-sized avatar

Jonn Mostovoy manpages

View GitHub Profile
@manpages
manpages / Makefile
Created May 31, 2012 20:13
Garry's Makefile For Esli
# Makefile for esli
# Artem Golovinsky <[email protected]>
REBAR = ./rebar
REL_ROOT = rel/esli
HTDOCS = $(REL_ROOT)/var/htdocs
all: get-deps compile generate
@manpages
manpages / decay.org
Created May 29, 2012 23:58
Decay KV-Storage Design Document

Decay Erlang Key-Value storage

Why to write yet another nosql product?

Because I can! Well, to be completely honest, I was seeking for a tool that suits my needs totally with no success. I need a pretty looking KV storage with small codebase that’s scalable, damn fast™ and could be used in embedded fashion in Erlang applications. Believe it or not, but the closest thing I found that match those criterias is erarly versions of fission KV-storage by VeryPositive. Though the production version of fission that’s possibly coming up soon — again — is not quite what I need. As it is supposed to be gargantuan transaction-based monstrosity. May be it’ll be still pretty

@manpages
manpages / trimaths.erl
Created May 28, 2012 23:22
KERL trimaths module
%%% KERL - Kent Erlang Robotics Library
%%% Copyright (C) 2009
%%% Thomas Lorentsen, Sten Gruener
%%%
%%%
%%% This program is free software; you can redistribute it and/or modify
%%% it under the terms of the GNU General Public License as published by
%%% the Free Software Foundation; either version 2 of the License, or
%%% (at your option) any later version.
%%%
@manpages
manpages / coordinates.erl
Created May 28, 2012 23:16
Not tested coordinate rotation module
-module(coordinates).
-export([
to_cartesian/2,
to_polar/2,
rotate_against/5
]).
to_cartesian(Angle, R) ->
{R*math:cos(Angle), R*math:sin(Angle)}.

Console logs

[sweater@ghostfire ~]$ sudo pacman -Rsnc eclipse checking dependencies…

Targets (7): eclim-1.7.1-1 eclipse-android-12.0.0-1 eclipse-emf-2.7.1-1 eclipse-gef-3.7.0-1 eclipse-vrapper-0.16.0-1 eclipse-wtp-wst-3.3.0-5 eclipse-3.7.1-2

Total Removed Size: 421.29 MiB

Do you want to remove these packages? [Y/n]

@manpages
manpages / topic.hehe
Created May 10, 2012 13:00
I want to ride my bicycle
<??
-include_lib ("fisbb/include/fisbb.hrl").
??>
<?
{Topic, Messages, PageCount} = Arg,
%TODO: get Parent() and Parent(Parent()),
Forum = fission_once:get_ev({forum, Topic#topic.parent})
?>
<html>
<head>
@manpages
manpages / web-bookmarks.org
Created April 28, 2012 23:18
Notes about things to read and watch on the Web
@manpages
manpages / the-case-for-gist-blogging.org
Created April 28, 2012 06:16
Why do I love to use gist as a blog engine?

The case for Gist blogging

Why to bother?

The posts people write in blogs can be classified in two groups:

  • those that are going to be (or should be) maintained, expressing the real time information (like books one reads or read, todo lists, lecture notes, etc),
  • those that express the momentary thoughts of a writer on an event or activity.

Maintaining the post

While first ones can be managed using standart blog engines (livejournal, blogger, etc) via «Edit post» option, that’s hardly

@manpages
manpages / anonymous.org
Created April 28, 2012 06:06
Anonymous gist sharing test

Blog with gist/Org-Mode!

The posts people write in blogs can be classified in two groups: -�� those that are going to be (or should be) mainatined, expressing the real time information, -�� those that express the momentary thoughts of a writer on an event or activity.

While first ones can be managed using standart blog engines (livejournal, blogger, etc) via «Edit post» option, that’s hardly efficient. What I found to be useful is the following —�� using gist (http://gist.github.org) as a great blogging engine. Indeed, you have

@manpages
manpages / books.org
Created April 28, 2012 04:26
Reading experience

DESCRIPTION

The contents of this file pretty much copy the data that can be obtained from http://goodreads.com/manpages Though I’ll certainly post some reviews here that I won’t post to the goodreads, so feel free to follow this gist if you are interested in the aggregated information on what I read. I have started that log at April 20th and plan to continue writing it for as long as I read books. No spoilers.