Skip to content

Instantly share code, notes, and snippets.

View stevepm's full-sized avatar
🏠
Working from home

Steve stevepm

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stevepm on github.
  • I am magel (https://keybase.io/magel) on keybase.
  • I have a public key ASAY63FjUZV5kzVtQqTe83GRl_-lkOAhIOkjX-cOxLjuZAo

To claim this, I am signing this object:

module Optimizely
module Helpers
module Constants
JSON_SCHEMA = {
'type' => 'object',
'properties' => {
'projectId' => {
'type' => 'string'
},
'accountId' => {
@stevepm
stevepm / optimizely.rb
Last active November 10, 2016 19:53
datafile.json
{"experiments"=>
[{"status"=>"Paused",
"percentageIncluded"=>10000,
"key"=>"split",
"trafficAllocation"=>[{"entityId"=>"6235610089", "endOfRange"=>10000}],
"audienceIds"=>[],
"variations"=>[{"id"=>"6235610089", "key"=>"original"}],
"forcedVariations"=>{},
"id"=>"6239920018"},
{"status"=>"Paused",
@stevepm
stevepm / introrx.md
Created March 27, 2016 07:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
if (process.env.IS_MIRROR) {
Meteor.methods({
'loadFixtures': function(){
console.log('Loading default fixtures');
// TODO: add your fixtures here
// Example below:
//*****EXAMPLE********
//Accounts.createUser({
// email: 'email@example.com',
// password: '123456'
@stevepm
stevepm / designer.html
Last active August 29, 2015 14:11
designer
<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">
<template>
<style>
@stevepm
stevepm / designer.html
Created December 10, 2014 22:46
designer
<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">
<template>
<style>
@stevepm
stevepm / gist:b71f6a2f42ce4a2ad080
Last active August 29, 2015 14:10
Bluemix Rails instructions

#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
@stevepm
stevepm / anagram.js
Last active August 29, 2015 14:02
anagram
function anagram(word) {
this.word = word;
this.originalWord = wordObject(word);
this.matches = function (wordArray) {
if (typeof wordArray === 'string'){
wordArray = Array.prototype.slice.call(arguments);
}
var wordMatches = [];
for (var i = 0; i < wordArray.length; i++) {
var wordMatcher = wordArray[i];
@stevepm
stevepm / commenting_spec.rb
Created June 5, 2014 16:14
bootstrap-wsywig5
require 'spec_helper'
feature 'User Profile' do
scenario 'a user can view their comments', js: true do
mock_gem
mock_gem('rails')
log_in
within '#most_downloaded' do
click_link 'faraday'
end