Skip to content

Instantly share code, notes, and snippets.

go hardwork.Do(ctx, energySupplier, privRepo)

Bradley Weston bweston92

go hardwork.Do(ctx, energySupplier, privRepo)
Block or report user

Report or block bweston92

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
codeliner / bc_interaction_sample.php
Created Apr 15, 2014
Sample to show interaction between two bounded contexts
View bc_interaction_sample.php
* This file is an example gist to show the interaction between an ArticleContext and a LikeContext
* @example:
* We have to bounded contexts: ArticleContext and LikeContext and show the simplified process of following use case:
* In order to create a valid article Like, I should validate the article ID given to the LikeContext.
yunano / vault.service
Last active Nov 6, 2019
View vault.service
Description=vault server consul.service
ExecStart=/usr/local/sbin/vault server $OPTIONS -config=/etc/vault.d
ExecStartPost=/bin/bash -c "for key in $KEYS; do /usr/local/sbin/vault unseal $CERT $key; done"
JosephPecoraro / gist:4069
Created Aug 5, 2008
Shell Execution in Ruby
View gist:4069
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs:
View paginated_collection.js
// includes bindings for fetching/fetched
var PaginatedCollection = Backbone.Collection.extend({
initialize: function() {
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage');
typeof(options) != 'undefined' || (options = {}); = 1;
typeof(this.perPage) != 'undefined' || (this.perPage = 10);
fetch: function(options) {
You can’t perform that action at this time.