Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
shared_examples_for "driver with javascript support" do | |
before { @driver.visit('/with_js') } | |
describe '#find' do | |
it "should find dynamically changed nodes" do | |
@driver.find('//p').first.text.should == 'I changed it' | |
end | |
end | |
describe '#drag_to' do |
In your Windows 7/8 VM, go to Control Panel
> System
> Advanced system settings
> Computer Name
and click Change
. Name this whatever you like, e.g. windows. Restart your VM.
Open CMD or Powershell as administrator. Add a URL ACL entry for your new name on the port of your choice, e.g.
netsh http add urlacl url=http://windows:8080/ user=everyone
# Call scopes directly from your URL params: | |
# | |
# @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
module Filterable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
# with their associated values. For example, "{ status: 'delayed' }" would call |
commit 074a79b95e66d999abe500051c5337805575ea3f | |
Author: Jake Craige <[email protected]> | |
Date: Tue Apr 7 10:14:29 2015 -0700 | |
Add testing infastructure for React components | |
diff --git a/app/controllers/components_controller.rb b/app/controllers/components_controller.rb | |
new file mode 100644 | |
index 0000000..4ffc308 | |
--- /dev/null |
Options included below:
docker-compose
brew
This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew
any longer. Instead consider adding a barebones docker-compose.yml
for each project and run docker-compose up
to start each project's mysql service.
#!/bin/bash | |
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools | |
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/ | |
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/ | |
#requirements: | |
#sha1sum (part of coreutils) | |
#xxd (part of vim) | |
#hexdump | |
#amiitool (https://github.com/socram8888/amiitool) |
# This is the complete source code to Basic Gorillas: | |
# https://dragonruby.itch.io/basicgorillas | |
# | |
# You can tinker with this by getting a copy of DragonRuby Game Toolkit: | |
# https://dragonruby.org/ | |
# | |
# Amir Rajan wrote this game, catch him at https://twitter.com/amirrajan ! | |
class YouSoBasicGorillas | |
attr_accessor :outputs, :grid, :game, :inputs |