Instantly share code, notes, and snippets.

View keybase.md

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:

View jkawjkd.rb
module Optimizely
module Helpers
module Constants
JSON_SCHEMA = {
'type' => 'object',
'properties' => {
'projectId' => {
'type' => 'string'
},
'accountId' => {
View optimizely.rb
{"experiments"=>
[{"status"=>"Paused",
"percentageIncluded"=>10000,
"key"=>"split",
"trafficAllocation"=>[{"entityId"=>"6235610089", "endOfRange"=>10000}],
"audienceIds"=>[],
"variations"=>[{"id"=>"6235610089", "key"=>"original"}],
"forcedVariations"=>{},
"id"=>"6239920018"},
{"status"=>"Paused",
View introrx.md
View database-reset.js
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'
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">
<template>
<style>
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">
<template>
<style>
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 = Array.prototype.slice.call(arguments);
}
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
mock_gem
mock_gem('rails')
log_in
within '#most_downloaded' do
click_link 'faraday'
end