Skip to content

Instantly share code, notes, and snippets.

Mark Maglana relaxdiego

Block or report user

Report or block relaxdiego

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
relaxdiego /
Last active Dec 22, 2019 — forked from surjikal/
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.


  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

View embracing_prototypal_object_model.js
RB.Object = {
// Douglas Crockford's technique for object extension
create: function(){
function F(){}
F.prototype = arguments[0];
var obj = new F();
// Add all the other arguments as mixins that
// 'write over' any existing methods
View mana output
[1] guard(main)> Run options: --seed 2796
# Running tests:
Finished tests in 0.001458s, 685.8711 tests/s, 685.8711 assertions/s.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
relaxdiego / lexer.rdsl
Last active Dec 23, 2015
Initial implementation of self-testing ManaMana (Do doo be-do-do!). I think it's cool that I can do this now. On the other hand, the .tdsl file below feels like an extra/unnecessary step. Clearly, ManaMana, is not well suited as a unit-testing tool which is fine because, when I wrote the gem, I imagined its use as an acceptance tool for a web ap…
View lexer.rdsl
RDSL Lexer
* It tokenizes
This is a group name
View gist:6459670
#!/usr/bin/env ruby
class Fixnum
def +(other)
puts 1 + 1 + 1
View gist:6410222
module Aviator
define_request :create_tenant do
meta :provider, :openstack
meta :service, :identity
meta :api_version, :v2
meta :endpoint_type, :admin
link 'documentation',
View dblatex.rb
require 'formula'
class Dblatex < Formula
url ''
homepage ''
md5 '7de6bf72b8b2934169ce0ec911e966ed'
def install
system "python", "", "install", "--prefix=#{prefix}", "--install-scripts=#{bin}"
GIT_VERSION=`git --version | awk '{print $3}'`
echo "Downloading git-completion for git version: $GIT_VERSION..."
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1
View gist:3038426
>>> from my_klass import my_klass
>>> from mocker import Mocker
>>> mocker = Mocker()
# Prepare the mock methods
>>> target = mocker.mock()
>>> target.method1(12) # doctest: +ELLIPSIS
<mocker.Mock object at ...>
>>> mocker.result(5)
>>> target.method2(12) # doctest: +ELLIPSIS
View gist:2626700
source ~/
PS1="$GREEN\w$YELLOW\$(__git_ps1)$NORMAL $ "
You can’t perform that action at this time.