Skip to content

Instantly share code, notes, and snippets.

View EngineeredEdge's full-sized avatar

EngineeredEdge

View GitHub Profile
@EngineeredEdge
EngineeredEdge / merge_articles.feature
Created February 2, 2016 18:43
merge_articles setup
Feature: Write Articles
As a blog administrator
In order to avoid multiple similar articles
I want to be able to merge two articles
Background:
Given the blog is set up
And I am logged into the admin panel
And the following articles exist
| id | title | body |
@EngineeredEdge
EngineeredEdge / test.rb
Created January 26, 2016 20:40
rspec for categories controller
require 'spec_helper'
describe Admin::CategoriesController do
render_views
before(:each) do
Factory(:blog)
#TODO Delete after removing fixtures
Profile.delete_all
henri = Factory(:user, :login => 'henri', :profile => Factory(:profile_admin, :label => Profile::ADMIN))
@EngineeredEdge
EngineeredEdge / create category
Created January 26, 2016 20:30
cucumber file for creating category ESaaS MOOC
Feature: Organize Articles by Category
As a blog administrator
In order to better organize articles
I want to be able to create categories
Background:
Given the blog is set up
And I am logged into the admin panel
Scenario: Successfully Create Category
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn #optional
import statsmodels.api as sm
boston = pd.read_csv('boston.csv', index_col = 0)
features = [col for col in boston.columns if col != 'medv'] # every column but response column
fit3 = sm.OLS(boston.medv,sm.add_constant(boston[features]))
results3 = fit3.fit()
# http://www.quantstart.com/articles/My-Talk-At-The-London-Financial-Python-User-GroupS
import datetime
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from abc import ABCMeta, abstractmethod
from pandas.io.data import DataReader
@EngineeredEdge
EngineeredEdge / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.