Obscure JavaScript: Imitating Perl in JavaScript

obscurejavascript:

This time I wanted to see how close I could get to Perl syntax. You may have heard about JavaScript Perl imitation, but I wanted to give my own perspective. Here is a fibonacci function in Perl:

sub fib{ # My is used for variables available only in the declared block. One way to get passed #...

3 notes

2500+ Best jQuery Plugins & Tutorials with jQuery Demo examples 2013

(Source: carnotaurus)

7 notes

install markdown-mode 4 emacs

1 note

torus:

ISO 8601 format string from a Date object:

JSON.parse(JSON.stringify(new Date()))
=> "2013-02-20T07:38:56.021Z"
1 note

carnotaurus:

decodering:

Nested

jQuery plugin for a gap free, multi column grid layout experience. It’s available for free at Github


scruffy, pointless, and unusable

https://github.com/suprb/Nested

carnotaurus:

decodering:

Nested

jQuery plugin for a gap free, multi column grid layout experience. It’s available for free at Github

scruffy, pointless, and unusable

https://github.com/suprb/Nested

11 notes

o.0


                       ----------
                      /          \
                     /    REST    \
                    /      IN      \
                   /     PEACE      \
                  /                  \
                  |    wactbprot     |
                  |      141 Au      |
                  |  poisoned by a   |
                  |   rotted gecko   |
                  |      corpse      |
                  |                  |
                  |       2013       |
                 *|     *  *  *      | *
        _________)/\\_//(\/(/\)/\//\/|_)_______


Goodbye wactbprot the Wizard...

You were poisoned in The Dungeons of Doom on dungeon level 2 with 453 points,
and 141 pieces of gold, after 1529 moves.
You were level 3 with a maximum of 21 hit points when you were poisoned.
1 note

:( killed by a goblin! :c

                       ----------
                      /          \
                     /    REST    \
                    /      IN      \
                   /     PEACE      \
                  /                  \
                  |    wactbprot     |
                  |      31 Au       |
                  |   killed by a    |
                  |      goblin      |
                  |                  |
                  |                  |
                  |       2013       |
                 *|     *  *  *      | *
        _________)/\\_//(\/(/\)/\//\/|_)_______


Goodbye wactbprot the Wizard...

You died in The Dungeons of Doom on dungeon level 1 with 32 points,
and 31 pieces of gold, after 606 moves.
You were level 1 with a maximum of 12 hit points when you died.

3 notes

Anonymous said: hey wo arbeitest du? bist du von der couchdb ug berlin? viele grüße, Jan ( @JFriedensreich )

Hier: http://www.ptb.de. Die couchdb ug berlin kenne ich nicht, weis aber, dass es eine solche gibt…

Viele Grüße wactbprot

0 notes

Isomorphismes: Bare Bones Vi & Emacs Navigation Keys

isomorphismes:

The people who brought you man tmux decided to throw in, as a bonus, the perfect sparse intro to vi keyboard shortcuts versus emacs keyboard shortcuts.

    Function                     vi              emacs
    Back to indentation          ^               M-m
    Bottom of history            G               M-<
    Clear selection              Escape          C-g
    Copy selection               Enter           M-w
    Cursor down                  j               Down
    Cursor left                  h               Left
    Cursor right                 l               Right
    Cursor to bottom line        L
    Cursor to middle line        M               M-r
    Cursor to top line           H               M-R
    Cursor up                    k               Up
    Delete entire line           d               C-u
    Delete/Copy to end of line   D               C-k
    End of line                  $               C-e
    Go to line                   :               g
    Half page down               C-d             M-Down
    Half page up                 C-u             M-Up
    Jump forward                 f               f
    Jump to forward              t
    Jump backward                F               F
    Jump to backward             T
    Jump again                   ;               ;
    Jump again in reverse        ,               ,
    Next page                    C-f             Page down
    Next space                   W
    Next space, end of word      E
    Next word                    w
    Next word end                e               M-f
    Paste buffer                 p               C-y
    Previous page                C-b             Page up
    Previous word                b               M-b
    Previous space               B
    Quit mode                    q               Escape
    Rectangle toggle             v               R
    Scroll down                  C-Down or C-e   C-Down
    Scroll up                    C-Up or C-y     C-Up
    Search again                 n               n
    Search again in reverse      N               N
    Search backward              ?               C-r
    Search forward               /               C-s
    Start of line                0               C-a
    Start selection              Space           C-Space
    Top of history               g               M->
    Transpose chars              xp              C-t

(Source: isomorphismes)

22 notes

janelwang:

What shape is emacs? Courtesy of Jim Weirich

janelwang:

What shape is emacs? Courtesy of Jim Weirich

5 notes

erlang-subscribe-at~couchdb.apache.org

2012/10/17 Noah Slater

Hey peeps,

Want to contribute, but don’t know where to start, or don’t know Erlang?

I’m pleased to announce that we have a new list for learning Erlang and CouchDB.

The idea here is to provide a friendly, like-minded environment for people who are interested in hacking on Couch to learn some Erlang.

Ask questions, get feedback, learn the codebase, and generally chitchat with other CouchDB folk who are also learning Erlang. (As well as our core hackers who will be around to help you if you get stuck or need guidance!)

Subscribe by sending an email to:

erlang-subscribe-at~couchdb.apache.org

(The mail archives will be up in a few hours.)

Thanks!

— NS

1 note

21 notes

http://orgmode.org/

Org mode is for keeping notes, maintaining TODO lists, doing project planning, and authoring with a fast and effective plain-text system.

1 note

A R convenience layer for CouchDB

      _____   _      )   ___                ______    ______   
     (, /   ) /   / (__/_____)          /) (, /    ) (, /    ) 
       /__ / /___/_   /       ___    _ (/    /    /    /---(   
    ) /   \_    /    /       (_)(_(_(__/ )__/___ /_ ) / ____)  
   (_/         /    (______)             (_/___ /  (_/ (       

The R4CouchDB package provides a collection of functions for basic database and document management operations such as add and delete.

Every cdbFunction() gets and emits a list containing the connection set up. With the cdbIni() function the cdb$serverName is set to “localhost” as a default. This means that localhost should provide a CouchDB. There are some examples below the demo folder.

Getting started

  • download latest version or clone repository
  • open a shell and install the package with:

     R CMD INSTALL R4couchDB
    

    dependencies (bitopts, RCurl, RJSONIO) can be installed in the same way

  • open R shell and load library with:

     library(R4CouchDB)
    
  • generate a connection object (list()) with:

     foo <- cdbIni()
    
  • play around with foo

     foo$queryParam <- "count=10"
     cdbGetUuidS(foo)$res
    
  • or make a twitter_db and fill up some search results from the request http://search.twitter.com/search.json?q=couchdb

     foo$newDBName  <- "twitter_db"
     foo            <- cdbMakeDB(foo)
     u              <- "http://search.twitter.com/search.json?q=couchdb"
     res            <- fromJSON(getURLContent(u))
     lapply(res$results,
                function(i){
                     foo$dataList <- i
                     cdbAddDoc(foo)})
     foo$res
    
  • get angry and write a ticket on https://github.com/wactbprot/R4CouchDB

3 notes