Skip to content

Instantly share code, notes, and snippets.

View dexterous's full-sized avatar

Saager Mhatre dexterous

View GitHub Profile
@dexterous
dexterous / ArtIsNotAboutYou.md
Created April 16, 2021 14:20 — forked from Madrox/ArtIsNotAboutYou.md
Art is Not About You

Art is Not About You

Forked from a community statement about Clojure

The only people entitled to say how art 'ought' to work are people who make art, and the scope of their entitlement extends only to their own art.

Just because someone creates something does not imply they owe the world a change in their status, focus and effort, e.g. from artist to community manager.

As an appreciator of a piece of art you are not thereby entitled to anything at all. You are not entitled to a say in how it evolves. You are not entitled to timely updates. You are not entitled to the attention of the artist. You are not entitled to having value attached to your complaints. You are not entitled to this explanation.

Upgrading to a Neo4j database from 1.9 to 2.0

This Gist is inspired by Neo4j 2.0 is coming blog post by Max De Marzi

The Neo4j 1.9 Sample Data - Movies

Let’s use a sample dataset related to the Movie Industry (Movies, Actors, Directors, etc.) that looks like:

Upgrading to a Neo4j database from 1.9 to 2.0

This Gist is inspired by Neo4j 2.0 is coming blog post by Max De Marzi

The Neo4j 1.9 Sample Data - Movies

Let’s use a sample dataset related to the Movie Industry (Movies, Actors, Directors, etc.) that looks like:

@dexterous
dexterous / why.md
Last active December 10, 2015 12:18

Why Brit Ruby 2013 was cancelled and why this is not ok

This is my post-mortem of why the conference was cancelled - it isn't an official statement

  • It was pointed out on Twitter that the lineup so far is white males.
  • This became frenzied and shared with allegations of racism/sexism.
  • This put the sponsors in an awkward position regarding commitment to the conference.
  • This meant the venue contract couldn't be signed because of a potential lack of financial security.
  • Since the team can't be personally liable for the costs, there was a hard decision to be made.
  • That decision was: cancel.
@dexterous
dexterous / currying_and_scope.groovy
Created November 15, 2012 18:06 — forked from nkhalasi/currying_and_scope.groovy
Function currying and scope in groovy
def sum = { it.sum() }
def square = { it * it }
def ofEach = { Object[] l -> l.&collect }
sumOfSquares = sum << { it(square) } << ofEach
def sumOfSquaresOfTwoLargestNumbers(a, b, c) {
def l = [a, b, c]
l -= l.min()
sumOfSquares(*l)
@dexterous
dexterous / original-rant.md
Last active September 23, 2022 01:37 — forked from kaiwren/gist:1283905
Steve Yegge's SOA post

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make en

@dexterous
dexterous / terrain.py
Created June 22, 2011 10:51 — forked from groner/terrain.py
Hooks for lettuce to run a test pylons app
'''Hooks for lettuce to run a test pylons app'''
from lettuce import *
from paste.fixture import TestApp
import pylons.test
from paste.deploy.loadwsgi import loadapp
from paste.script.appinstall import SetupCommand
@dexterous
dexterous / proc_expectations.rb
Created February 28, 2011 09:12
various use cases for ruby blocks
require 'rubygems'
require 'expectations'
Expectations do
expect(1){ proc{ |a| a }.call(1) }
expect([1, 2]){ proc{ |a| a }.call(1, 2) }
expect(1){ proc{ |a, b| a }.call(1, 2) }
expect(1){ Proc.new{ |a| a }.call(1) }