Skip to content

Instantly share code, notes, and snippets.

View loujaybee's full-sized avatar
🖥️
Codin'

Lou Bichard loujaybee

🖥️
Codin'
View GitHub Profile
describe('GIVEN I am not an admin user', function () {
describe('WHEN Navigate to the page /admin ', function () {
it('THEN I see a warning box stating: "You do not have access to this page" ', () => {
Page.navigate('/admin')
expect(Page.elementContains('#error-message', 'You do not have access to this page')).toBeTrue();
});
});
});
@loujaybee
loujaybee / stripeSubscriptionsCreate.js
Created November 14, 2017 09:28
Stripe Create Subscriptions
stripe.subscriptions.create({
customer: "your-customers-id",
plan: "monthly-membership",
application_fee_percent: 5
}, {
stripe_account: req.body.account
})
@loujaybee
loujaybee / stripeCustomerCreate.js
Created November 14, 2017 09:27
Stripe Create A Customer (NodeJS)
stripe.customers.create({
description: "A new member, called Linda!",
source: "tok_visa"
},{
stripe_account: req.body.account
});
@loujaybee
loujaybee / stripePlanCreate.js
Created November 14, 2017 09:26
stripeCreatePlan.js
stripe.plans.create(
{
amount: 1000,
name: "A monthly membership",
id: "monthly-membership",
interval: "month",
currency: "gbp"
},
{
@loujaybee
loujaybee / stripeCreateAccount.js
Created November 14, 2017 09:25
Stripe Create Account (NodeJS)
stripe.accounts.create({
email: "bob@bobsgym.com",
country: "gb",
type: "custom"
})

$(document).ready(function(){ console.log("Ready!")

for(var i = 1; i<=100; i++){

if(i % 3 === 0 &amp;&amp; i % 5 === 0){

box-sizing: border-box;

@loujaybee
loujaybee / gitbasics.md
Last active September 22, 2016 01:58
Git basics

Gotcha's / Things to watch out for

  • You're creating a new branch, all changes on this branch are different from changes on master
  • You can resolve this in a number of ways, for now just stay and work on the gh-pages branch for ease
  • It is generally good practice to keep 'master' as the source of truth, that's why it's master so we will cover merging things back to master eventually

Git basics: Setting up a github pages

Step 1: Create the repo online

/*
fa-bug
fa-balance-scale
fa-list-ul
fa-plus
fa-times-circle
fa-bars
fa-book
fa-1
var getObjectProperties = function(prop){
console.log('arturs stuff', object[prop]);
};
var object = {
"test": "something",
"somethingelse": "artur"
}
getObjectProperties("test");