Skip to content

Instantly share code, notes, and snippets.

View AdrianRossouw's full-sized avatar

Adrian Rossouw AdrianRossouw

View GitHub Profile
// We're calling this "asymHumanoidBodyParts" for two reason:
// * it only contains the left-side body parts
// * in the future we might want to include creatures like spiders or
// wolves or whatever
//
// The first element of the nested array is the name of the body part,
// and the second element is its relative weight - how likely it is
// that it will be hit relative to the other parts.
var asymHumanoidBodyParts = [["head", 3],
["left-eye", 1],
<script language='text/javascript'>
// We're calling this "asymHumanoidBodyParts" for two reason:
// * it only contains the left-side body parts
// * in the future we might want to include creatures like spiders or
// wolves or whatever
//
// The first element of the nested array is the name of the body part,
// and the second element is its relative weight - how likely it is
// that it will be hit relative to the other parts.
var asymHumanoidBodyParts = [["head", 3],
@AdrianRossouw
AdrianRossouw / gist:3481636
Created August 26, 2012 16:55
makhani recipe
4x onions
head and a half of garlic
100g ginger
250g chilli - deseeded
sautee in insane amount of butter till golden brown
add :
7x tins of chopped tomatoes
@AdrianRossouw
AdrianRossouw / README.md
Created October 4, 2012 05:48 — forked from mbostock/.block
Stacked Radial Area

This plot might be suitable for showing cyclical trends, though I'm not sure it’s a great idea as the radial display has a number of limitations:

  • The underlying data goes from Sunday to Saturday, but the chart shows continuity from Saturday through to the previous Sunday. Time does not flow backwards, so you might instead prefer to plot two values for Sunday; this would show a discontinuity on opposite sides of the Sunday axis.

  • Displaying the discontinuity requires an open interpolator, rather than cardinal-closed as used here. However, this causes the tangents of the incoming and outgoing lines to no longer be orthogonal to the axis. To display the discontinuity properly, you’d need to write a custom interpolator to generate the correct tangents.

  • Due to the interpolation taking place in Cartesian (rather than polar) coordinates, the intermediate values of the lines do not have the correct radial values: if you tried to measure t

@AdrianRossouw
AdrianRossouw / 00readme.md
Last active December 17, 2015 06:29
zephyros 5.0 config

Anchored Windows

This Zephyros configuration introduces the concept of "Anchors" to all windows. There are nine-altogether for each window, through all the combinations of top, middle, bottom, left, right and center.

Each screen has a complimentary set of anchor points. Using ctrl+alt+cmd and the arrow keys, you are able to anchor windows to these points on the screen.

@AdrianRossouw
AdrianRossouw / keybase.md
Created April 21, 2014 13:13
keybase.md

Keybase proof

I hereby claim:

  • I am Vertice on github.
  • I am adrianrossouw (https://keybase.io/adrianrossouw) on keybase.
  • I have a public key whose fingerprint is 2D21 FDAE AEB8 71AC 89F1 105D 9AC1 7A0B A656 E74C

To claim this, I am signing this object:

@AdrianRossouw
AdrianRossouw / readme.md
Last active August 29, 2015 14:01
Graft.io: full-stack js-based microservices

There are some really big changes that are starting to unfold across the web ecosystem in the next few months, and we have a rare opportunity to affect a major change to the way that we perceive and build software.

Trends and Influences

This route captures all of the influences on this system

Advancements on the server

These terms did not have their own wikipedia pages

  • Bleeding edge: Operating with cutting-edge technologies that are still untested and/or unstable, leading to cost overruns, under-performance, and/or delayed delivery
  • Lost in the weeds: Decision-making stalled by focusing too much on tiny details
  • Revolving door: An organization or team with high staff turnover that struggles to be effective, especially in maintaining continuity or business knowledge
  • Top-down management: A style of management where decisions and ideas too often start at the top and are passed down through successive levels
  • Typecasting: Locking successful employees into overly-safe, narrowly-defined, predictable roles based on their past successes rather than their potential
/* globals define */
define(function(require, exports, module) {
'use strict';
// import dependencies
var Engine = require('famous/core/Engine');
var Surface = require('famous/core/Surface');
var EventHandler = require('famous/core/EventHandler');
var View = require('famous/core/View');
var Transform = require('famous/core/Transform');