Skip to content

Instantly share code, notes, and snippets.

def foo(foo_return):
def foo_decorator(func):
def func_wrapper(name):
if foo_return:
return foo_return
else:
return func(name)
return func_wrapper
return foo_decorator
@marcellmars
marcellmars / PublicLibrary-History
Last active August 29, 2015 14:08
Public Library - History
[TOC]
### "G33koskop seminar: O arhivi i knjižnici" at MaMa, Zagreb, December 2011
- http://najave.razmjenavjestina.org/2011/12/01/g33koskop-seminar-03-12-2011-1500-o-arhivi-i-knjiznici/
- http://www.youtube.com/watch?v=iegvhE5mxsw
### "LIBRE GRAPHICS RESEARCH UNIT MEETING" at WORM, Rotterdam, September 2012
- http://www.worm.org/home/view/event/4835
# Public Library
In *What Was Revolutionary about the French Revolution?*[1](#ftn1) Robert Darnton considers how a complete collapse of the social order (when absolutely everything – all social values – is turned upside down) would look. Such trauma happens often in the life of individuals but only rarely on the level of an entire society.
> In 1789 the French had to confront the collapse of a whole social order—the world that they defined retrospectively as the Ancien Régime—and to find some new order in the chaos surrounding them. They experienced reality as something that could be destroyed and reconstructed, and they faced seemingly limitless possibilities, both for good and evil, for raising a utopia and for falling back into tyranny.[2](#ftn2)
The revolution bootstraps itself.
In the dictionaries of the time, the word revolution was said to derive from the verb to revolve and was defined as *“the return of the planet or a star to the same point from which it parted.”*[3](#ftn3) French political voca
### Keybase proof
I hereby claim:
* I am marcellmars on github.
* I am marcellmars (https://keybase.io/marcellmars) on keybase.
* I have a public key whose fingerprint is DA17 AB7B 8A1B 62E7 4E92 6707 C671 461E 9C33 F0F7
To claim this, I am signing this object:
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
[TOC]
### Ezra Abbot
#### Bible scholar and library assistant at Harvard. Orders the internal card catalog to be opened to an interested outside readership.
### Regina Andrews
#### Groundbreaking librarian, fighting for equal pay and against sexism and racism. First African American Supervising Librarian in the New York Public Library system.
### Henriette Davidson Avram
#### Computer programmer and systems analyst who developed the MARC format (Machine Readable Cataloging).
### Dušan Barok
#### Initiator and principle librarian of Monoskop, a wiki-based portal for collaborative research in media art and culture.
@marcellmars
marcellmars / list2chunks.py
Created May 21, 2014 14:36
list2chunks returns new list with chunks from the input list. chunks are having lenghts of chlen and with the last chunk being merged if shorter than chlen
def list2chunks(lst, chlen=10, chcount=0, chunks=[], tail = 0.5):
'''it returns new list with chunks from the input list. \
chunks are having lenghts of chlen and with the last chunk \
being merged if shorter than chlen'''
if len(lst) <= chlen + tail * chlen:
chunks.append(lst[chcount:])
return chunks
chunk = lst[chcount:chcount+chlen]
chcount += chlen
chunks.append(chunk)
@marcellmars
marcellmars / how many downloads from ge.tt
Last active August 29, 2015 14:01
how many downloads from ge.tt
# from http://ge.tt/notifications Save as text into 'koliko_puta'
import re
sum([int(re.search("downloaded (\d.*)( time.*)", b).groups()[0]) for b in [b for b in open("koliko_puta").readlines() if b.find("time") > 0]])

Revenge of the mainframe nerds

At the beginning of seventies when microprocessors were introduced to the world very few could imagine that anything singular, small, or personal built on top of microprocessors could win over IBM 360 mainframe series. One could compute almost nothing with microprocessors and the enterprise world was overwhelmed by the promises of mainframe computers.

It took only a decade for personal computers, driven by passion of homebrew computer enthusiasts, to become the new paradigm of emerging swarm infrastructure. In the late seventies the spreadsheet application excited small businesses that personal computers will not be only toys for geeks and nerds. When, during the nineties, personal computers got all connected into world wide web it seemed that mainframe (centralized) paradigm lost the war against distributive, bottom-up, spontaneous, capillary dynamics of communication infrastructure build by individuals buying cheap computers on competitive free market of consumer electron

@marcellmars
marcellmars / redshiftme
Last active August 29, 2015 13:57
redshiftme - runs gtk-redshift with coordinates by just running: `redshiftme city`
#!/usr/bin/env python
#use: redshiftme city
import geopy, sys, subprocess
coords = "44.820556:20.462222"
try:
coords = str(geopy.GoogleV3().geocode('{}'.format(sys.argv[1]))[1]).replace(', ', ':').replace('(','').replace(')','')