Skip to content

Instantly share code, notes, and snippets.

# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@spock74
spock74 / form.json
Created December 13, 2015 05:12 — forked from anonymous/form.json
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
{
"type": "fieldset",
"title": "Stuff",
"items": [
{
"type": "tabs",
"tabs": [
{
"title": "Simple stuff",
@spock74
spock74 / vim_cheatsheet.md
Last active August 29, 2015 14:27 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@spock74
spock74 / README.md
Last active August 29, 2015 14:22 — forked from rkirsling/LICENSE

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!

@spock74
spock74 / README.md
Last active August 29, 2015 14:22 — forked from rkirsling/LICENSE

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!

@spock74
spock74 / README.md
Last active August 29, 2015 14:22 — forked from mbostock/.block
@spock74
spock74 / quandl-employment-brazil-01.R
Last active August 29, 2015 14:19
Emprego no Brasil, setor indústria, nos últimos anos
#' Brazil Employment/unemployment
#' ----------------------------------------------------------------------------
#'
#' Data From:
#' https://www.quandl.com/data/WORLDBANK/BRA_SL_IND_EMPL_ZS-Brazil-Employment-in-industry-of-total-employment
#'
#' -----------
#' DESCRIPTION
#' -----------
#' Employees are people who work for a public or private employer and receive
@spock74
spock74 / README.md
Last active August 29, 2015 14:19 — forked from mbostock/.block

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

@spock74
spock74 / README.md
Last active August 29, 2015 14:19 — forked from mbostock/.block

The scatterplot matrix visualizations pairwise correlations for multi-dimensional data; each cell in the matrix is a scatterplot. This example uses Anderson's data of iris flowers on the Gaspé Peninsula. Scatterplot matrix design invented by J. A. Hartigan; see also R and GGobi. Data on Iris flowers collected by Edgar Anderson and published by Ronald Fisher.

See also this simpler static version without brushing.

@spock74
spock74 / README.md
Last active August 29, 2015 14:19 — forked from mbostock/.block