Skip to content

Instantly share code, notes, and snippets.

Benjamin Cherion balibou

Block or report user

Report or block balibou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# this script will merge the hotfix branch
# checks if branch has something pending
function parse_git_dirty() {
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*"
# gets the current git branch
balibou /
Last active Jan 1, 2018
# this script will create a hotfix branch
# get package.json version
PACKAGE_VERSION="$(node -pe "require('./package.json')['$prop']")"
# define package version
View ether
balibou / Dashboard.vue
Created Mar 13, 2017
TypeError: child._updateFromParent is not a function
View Dashboard.vue
<template lang="html">
<top-stats v-on:dataChanged="UpdateChart"></top-stats>
import { SET_CHART } from '../../vuex/mutation-types.js'
import LineChart from '../charts/LineChart.vue'
View public-navigation.js
// ./imports/ui/components/public-navigation.js
import React from 'react';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
import { Nav, NavItem } from 'react-bootstrap';
export const PublicNavigation = () => (
{/*Add a 'Plans' link*/}
View routes.js
// ./imports/startup/client/routes.js
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { Meteor } from 'meteor/meteor';
import { App } from '../../ui/layouts/app';
import { Documents } from '../../ui/pages/documents';
import { Index } from '../../ui/pages/index';
import { Login } from '../../ui/pages/login';
View methods.js
// ./imports/api/stripe/methods.js
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
// Connect to the Stripe API with the private token
// No need to declare StripeAPI, it is provided with mrgalaxy:stripe package
// (
const stripe = StripeAPI(Meteor.settings.private.stripe);
View api.js
// ./imports/startup/server/api.js
import '../../api/documents/methods.js';
import '../../api/documents/server/publications.js';
//Add this path for getting stripe methods
import '../../api/stripe/methods';
View browser-policy.js
// ./imports/startup/server/browser-policy.js
import { BrowserPolicy } from 'meteor/browser-policy-common';
View plan.jsx
// ./imports/ui/components/plan.jsx
import React from 'react';
import { ListGroupItem } from 'react-bootstrap';
export const Plan = React.createClass({
propTypes: {
plan: React.PropTypes.object.isRequired,
selectedPlan: React.PropTypes.func,
You can’t perform that action at this time.