Skip to content

Instantly share code, notes, and snippets.

View manpages's full-sized avatar

Jonn Mostovoy manpages

View GitHub Profile
@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 / 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 / web-bookmarks.org
Created April 28, 2012 23:18
Notes about things to read and watch on the Web
@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>

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 / 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)}.
@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 / 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 / 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 / mo.erl
Created July 8, 2012 07:44 — forked from dmitriid/mo.erl
Parse out Mod, Func, Name from function type spec
%% Consider
%% mod:func([A],{A,B},list(), any(), some_type({A,list(),B})) -> ok | error.
%%
%% Start from the beginning. Scan each character
%%
%% 1. Once we hit ":", we've got our module name, start looking for function
%% name.
%% 2. Once we hit "(", we've got our method name, start looking for arguments
%% 3. Arguments are a bit trickier
%% 3.1 If we encounter a "{", "[", "(" we don't care about anything