A Pen by Engineered Edge on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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.