Skip to content

Instantly share code, notes, and snippets.


Graeme West capncodewash

  • Glasgow
View GitHub Profile
jaredwinick /
Last active Apr 21, 2020
Apache Zeppelin Object Exchange for passing a DataFrame of feature vectors from the Scala Spark interpreter to PySpark to get a numpy array

Apache Zeppelin has a helpful feature in its Spark Interpreter called Object Exchange. This allows you to pass objects, including DataFrames, between Scala and Python paragraphs of the same notebook. You can do your data prep/feature engineering with the Scala Spark Interpreter, and then pass off a DataFrame containing the features to PySpark for use with libraries like NumPy and scikit-learn. Also with Zeppelin's support for matplotlib you have a pretty good setup for poking around and testing out machine learning on your data.

calclavia / gist:60b30c497adce5587f70
Last active Jan 23, 2019 — forked from RX14/gist:6e04cd9fc71c52191def
Create property file with Gradle
View gist:60b30c497adce5587f70
def propertyFile = file "src/main/resources/META-INF/"
def props = new Properties()
propertyFile.withReader { props.load(it) }
props.setProperty("version", project.version)
propertyFile.withWriter { }
joepadmiraal /
Last active Apr 8, 2020
Jenkins build status widget for Dashing

The MIT License (MIT)

Copyright (c) 2014 David Underwood

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

christiangalsterer /
Last active Dec 16, 2019
Atlassian Jira: Number of issues in a Jira Query Language (JQL) search


A Dashing widget to display the number of issues returned by a Jira Query Language (JQL) search. The number of issues will be displayed using the Numbers widget. This widget is a generalized version of the Atlassian Jira: Number of issues in a Jira filter query widget, which shows the number of issues for saved Jira filter.


The following dependencies are required. Please add them to your dashing gemfile.

gem 'jira-ruby', :require => 'jira'
mtowers /
Last active Apr 20, 2019
Google Analytics Website Visitor Count Widget for Dashing with OAuth2 Authentication
gregology / dashboard
Last active Jun 3, 2019
Service script for dashing. Update DASHING_DIR variable, add this file to /etc/init.d/ , chmod to 755, and let update rc.d with $ sudo update-rc.d dashboard defaults This scripts stops the dashing service with "killall thin" which will kill all thin services running on your server.
View dashboard
# Dashing service
# Add this file to /etc/init.d/
# $ sudo cp dashboard /etc/init.d/
# Update variables DASHING_DIR, GEM_HOME, & PATH to suit your installation
# $ sudo nano /etc/init.d/dashboard
# Make executable
# $ sudo chmod 755 /etc/init.d/dashboard
# Update rc.d
# $ sudo update-rc.d dashboard defaults
coderoshi / gist:3729593
Last active Oct 20, 2020
A Very Short Guide to Writing Guides
View gist:3729593

A Very Short Guide to Writing Guides

This is just a few thoughts on the topic of writing technical guides. This was intended for Basho's engineering team, but this may apply to open source projects in general.


It's commonly preached that the first step in writing is to identify your audience; to whom are you writing? This is the most well known, most repeated, and most overlooked step of writing in general and technical writing in particular. Take this document, for example. My audience is technical people who need to communicate technical information, and not teenagers, so I shy away from images of pop icons and memes. I use jargon and words like "identify" rather than "peep this".


juanje / gist:2558286
Created Apr 30, 2012
Simple Vagrantfile for testign Django with Chef-solo
View gist:2558286 do |config|
# Every Vagrant virtual environment requires a box to build off of. = "base"
# Assing IP to the VM :hostonly, ""
# Share directory between the host and the VM
config.vm.share_folder "git","/opt/git","/home/anarey/git/djandoapps"
myobie / mountain-lion-brew-setup.markdown
Created Feb 18, 2012
Get Mountain Lion and Homebrew to Be Happy
View mountain-lion-brew-setup.markdown

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

dex4er / xsd-merge.xslt
Created Nov 21, 2011
XSLT tools for XSD and WSDL schemas
View xsd-merge.xslt
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" />
<xsl:template match="/">
<xsl:apply-templates />
You can’t perform that action at this time.