Skip to content

Instantly share code, notes, and snippets.

View mattwynne's full-sized avatar

Matt Wynne mattwynne

View GitHub Profile
sudo apt-get update --assume-yes
sudo apt-get install --assume-yes vim git-core mpd mpc
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install --assume-yes nodejs
git clone https://github.com/cucumber-ltd/cucumbers-and-raspberries.git
cd cucumbers-and-raspberries
npm install
require 'optparse'
def tags_msg
"TODO"
end
def add_tag(value)
puts "add tag: #{value}"
end
#!/bin/bash
set -e
branch=`git name-rev --name-only head`
git checkout master
git cherry-pick $branch
git checkout $branch
git rebase master
#!/bin/bash
set -e
branch=`git name-rev --name-only head`
git checkout master
git cherry-pick $branch
git checkout $branch
git rebase master
{
"type": "Feature",
"tags": [],
"location": {
"line": 1,
"column": 1
},
"language": "en",
"keyword": "Feature",
"name": "Foo",
@mattwynne
mattwynne / -
Created October 16, 2015 13:57
Cucumber::Core::Ast::Background
has a useful inspect
Cucumber::Core::Ast::DataTable
equality
is equal to another table with the same data
is not equal to another table with different data
is not equal to a non table
#data_table?
package shouty.web;
import com.mockrunner.mock.web.MockFilterConfig;
import com.mockrunner.mock.web.MockHttpServletRequest;
import com.mockrunner.mock.web.WebMockObjectFactory;
import com.mockrunner.servlet.ServletTestModule;
import org.junit.Before;
import spark.servlet.SparkApplication;
import spark.servlet.SparkFilter;
require 'cucumber/core'
test_case = Cucumber::Core::Test::Case.new([ Cucumber::Core::Test::Step.new([]).with_action { fail } ], [])
class Report
def before_test_case(test_case)
end
def before_test_step(test_step)
end
@mattwynne
mattwynne / gist:11234400
Created April 23, 2014 22:16
Two websocket logs
# When it works:
[:client, :starting]
[:server, :starting]
[:server, :open]
[:client, :open]
[:socket, :send, {:body=>{:status=>:passed}}]
[:server, :message, "{\"body\":{\"status\":\"passed\"}}"]
[:client, :message, "ok"]
[:client, :close]
[:server, :close]
@mattwynne
mattwynne / readme.md
Created February 24, 2014 09:52
SRC2014 Workshop - Writing a Game in Ruby

SRC 2014 Workshops

Writing a Game in Ruby

Session leader: Mike Moore (@blowmage)

About this session

Creating games is crazy fun and dirt simple with Ruby. You will leave this workshop with a working game; no previous game development experience necessary. We will introduce basic concepts of game programming and show how to implement them using the Gosu library. This includes the game loop, sprites, animation and hit detection. We will build a complete game, so bring your laptop and follow along.