Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am stevepm on github.
  • I am magel ( on keybase.
  • I have a public key ASAY63FjUZV5kzVtQqTe83GRl_-lkOAhIOkjX-cOxLjuZAo

To claim this, I am signing this object:

View jkawjkd.rb
module Optimizely
module Helpers
module Constants
'type' => 'object',
'properties' => {
'projectId' => {
'type' => 'string'
'accountId' => {
View optimizely.rb
"trafficAllocation"=>[{"entityId"=>"6235610089", "endOfRange"=>10000}],
"variations"=>[{"id"=>"6235610089", "key"=>"original"}],
View database-reset.js
if (process.env.IS_MIRROR) {
'loadFixtures': function(){
console.log('Loading default fixtures');
// TODO: add your fixtures here
// Example below:
// email: '',
// password: '123456'
View designer.html
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
View designer.html
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
View gist:b71f6a2f42ce4a2ad080

#Bluemix Instructions

  • Install cloudfoundry cli
  • rails new MY_APP_NAME -T
  • Add rails_12factor gem to gemfile for logging purposes
  • touch manifest.yml to create the manifest file in your root directory, this will store your Bluemix App config
  • Log in to Bluemix
  • Click Create an app
  • Choose Ruby on Rails runtime towards the bottom
  • Choose your app name and route and then click create
View anagram.js
function anagram(word) {
this.word = word;
this.originalWord = wordObject(word);
this.matches = function (wordArray) {
if (typeof wordArray === 'string'){
wordArray =;
var wordMatches = [];
for (var i = 0; i < wordArray.length; i++) {
var wordMatcher = wordArray[i];
View commenting_spec.rb
require 'spec_helper'
feature 'User Profile' do
scenario 'a user can view their comments', js: true do
within '#most_downloaded' do
click_link 'faraday'